mastercake10 7 anni fa
parent
commit
0bb21ad153

+ 2 - 1
README.md

@@ -1,3 +1,4 @@
 chat-format: '&c[Telegram]&r %player%: %message%'
 enable-joinquitmessages: true
-enable-deathmessages: true
+enable-deathmessages: true
+enable-chatmessages: true

+ 1 - 0
de/Linus122/TelegramChat/Data.java

@@ -156,6 +156,7 @@ public class Main extends JavaPlugin implements Listener{
 	}
 	@EventHandler
 	public void onChat(AsyncPlayerChatEvent e){
+		if(!this.getConfig().getBoolean("enable-chatmessages")) return;
 		if(Telegram.connected){
 			Chat chat = new Chat();
 			chat.parse_mode = "Markdown";

+ 0 - 0
de/Linus122/TelegramChat/Telegram.java