@@ -1,3 +1,4 @@
chat-format: '&c[Telegram]&r %player%: %message%'
enable-joinquitmessages: true
-enable-deathmessages: true
+enable-deathmessages: true
+enable-chatmessages: true
@@ -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";