diff --git a/src/main/java/de/Linus122/TelegramChat/Main.java b/src/main/java/de/Linus122/TelegramChat/Main.java index 04fc2b0..2a699a4 100755 --- a/src/main/java/de/Linus122/TelegramChat/Main.java +++ b/src/main/java/de/Linus122/TelegramChat/Main.java @@ -192,6 +192,8 @@ public class Main extends JavaPlugin implements Listener { public void onChat(AsyncPlayerChatEvent e) { if (!this.getConfig().getBoolean("enable-chatmessages")) return; + if(e.isCancelled()) + return; if (telegramHook.connected) { ChatMessageToTelegram chat = new ChatMessageToTelegram(); chat.parse_mode = "Markdown";