diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/config.yml b/config.yml old mode 100644 new mode 100755 index c9bca31..746d49f --- a/config.yml +++ b/config.yml @@ -1,3 +1,4 @@ chat-format: '&c[Telegram]&r %player%: %message%' enable-joinquitmessages: true -enable-deathmessages: true \ No newline at end of file +enable-deathmessages: true +enable-chatmessages: true \ No newline at end of file diff --git a/de/Linus122/TelegramChat/Data.java b/de/Linus122/TelegramChat/Data.java old mode 100644 new mode 100755 diff --git a/de/Linus122/TelegramChat/LinkTelegramCmd.java b/de/Linus122/TelegramChat/LinkTelegramCmd.java old mode 100644 new mode 100755 diff --git a/de/Linus122/TelegramChat/Main.java b/de/Linus122/TelegramChat/Main.java old mode 100644 new mode 100755 index 7ae6a3a..860275a --- a/de/Linus122/TelegramChat/Main.java +++ b/de/Linus122/TelegramChat/Main.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"; diff --git a/de/Linus122/TelegramChat/Telegram.java b/de/Linus122/TelegramChat/Telegram.java old mode 100644 new mode 100755 diff --git a/de/Linus122/TelegramChat/TelegramCmd.java b/de/Linus122/TelegramChat/TelegramCmd.java old mode 100644 new mode 100755 diff --git a/de/Linus122/TelegramComponents/Chat.java b/de/Linus122/TelegramComponents/Chat.java old mode 100644 new mode 100755 diff --git a/plugin.yml b/plugin.yml old mode 100644 new mode 100755