Speedgot
TelegramChat
-----
Brings the ingame chat to Telegram!
Download Now
Via external site
Overview
Updates (
--
)
Reviews (
---
)
Version History
Discussion
update update 1.0.13
added the class Cancellable that allows developers to cancel the two implemented API methods shown below.
Example usage:
Code (Java):
import
de.Linus122.TelegramChat.TelegramActionListener
;
import
de.Linus122.TelegramComponents.Chat
;
import
de.Linus122.TelegramComponents.ChatMessageToMc
;
public
class
TelegramListener
implements
TelegramActionListener
{
@Override
public
void
onSendToMinecraft
(
ChatMessageToMc msg
)
{
if
(
msg.
text
.
contains
(
"swearword"
)
)
{
msg.
setCancelled
(
)
;
}
}
@Override
public
void
onSendToTelegram
(
ChatMessageToTelegram msg
)
{
if
(
msg.
content
.
contains
(
"swearword"
)
)
{
msg.
setCancelled
(
)
;
}
}
}
----------
,
May 20, 2018
View on SpigotMC
Resource Information
Author:
----------
Total Downloads:
7,129
First Release:
Jan 3, 2016
Last Update:
Dec 14, 2022
Category:
---------------
All-Time Rating:
50 ratings
Version
-----
Released:
--------------------
Downloads:
------
Version Rating:
----------------------
--
ratings