From 0bb21ad1533b52daf776735a3ff770aad4ff6a23 Mon Sep 17 00:00:00 2001 From: mastercake10 Date: Sun, 2 Apr 2017 22:47:25 +0200 Subject: [PATCH] update --- README.md | 0 config.yml | 3 ++- de/Linus122/TelegramChat/Data.java | 0 de/Linus122/TelegramChat/LinkTelegramCmd.java | 0 de/Linus122/TelegramChat/Main.java | 1 + de/Linus122/TelegramChat/Telegram.java | 0 de/Linus122/TelegramChat/TelegramCmd.java | 0 de/Linus122/TelegramComponents/Chat.java | 0 plugin.yml | 0 9 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 config.yml mode change 100644 => 100755 de/Linus122/TelegramChat/Data.java mode change 100644 => 100755 de/Linus122/TelegramChat/LinkTelegramCmd.java mode change 100644 => 100755 de/Linus122/TelegramChat/Main.java mode change 100644 => 100755 de/Linus122/TelegramChat/Telegram.java mode change 100644 => 100755 de/Linus122/TelegramChat/TelegramCmd.java mode change 100644 => 100755 de/Linus122/TelegramComponents/Chat.java mode change 100644 => 100755 plugin.yml 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