update
This commit is contained in:
parent
4d94a59297
commit
0bb21ad153
3
config.yml
Normal file → Executable file
3
config.yml
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
chat-format: '&c[Telegram]&r %player%: %message%'
|
chat-format: '&c[Telegram]&r %player%: %message%'
|
||||||
enable-joinquitmessages: true
|
enable-joinquitmessages: true
|
||||||
enable-deathmessages: true
|
enable-deathmessages: true
|
||||||
|
enable-chatmessages: true
|
0
de/Linus122/TelegramChat/Data.java
Normal file → Executable file
0
de/Linus122/TelegramChat/Data.java
Normal file → Executable file
0
de/Linus122/TelegramChat/LinkTelegramCmd.java
Normal file → Executable file
0
de/Linus122/TelegramChat/LinkTelegramCmd.java
Normal file → Executable file
1
de/Linus122/TelegramChat/Main.java
Normal file → Executable file
1
de/Linus122/TelegramChat/Main.java
Normal file → Executable file
@ -156,6 +156,7 @@ public class Main extends JavaPlugin implements Listener{
|
|||||||
}
|
}
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onChat(AsyncPlayerChatEvent e){
|
public void onChat(AsyncPlayerChatEvent e){
|
||||||
|
if(!this.getConfig().getBoolean("enable-chatmessages")) return;
|
||||||
if(Telegram.connected){
|
if(Telegram.connected){
|
||||||
Chat chat = new Chat();
|
Chat chat = new Chat();
|
||||||
chat.parse_mode = "Markdown";
|
chat.parse_mode = "Markdown";
|
||||||
|
0
de/Linus122/TelegramChat/Telegram.java
Normal file → Executable file
0
de/Linus122/TelegramChat/Telegram.java
Normal file → Executable file
0
de/Linus122/TelegramChat/TelegramCmd.java
Normal file → Executable file
0
de/Linus122/TelegramChat/TelegramCmd.java
Normal file → Executable file
0
de/Linus122/TelegramComponents/Chat.java
Normal file → Executable file
0
de/Linus122/TelegramComponents/Chat.java
Normal file → Executable file
0
plugin.yml
Normal file → Executable file
0
plugin.yml
Normal file → Executable file
Loading…
Reference in New Issue
Block a user