Added check for if a chat message got canceled by another plugin.

This commit is contained in:
FlorianKem 2018-05-21 14:55:18 +02:00
parent 44725de1f5
commit a29edfcf7c

View File

@ -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";