Merge pull request #15 from FlorianKem/master

Added check for if a chat message got canceled by another plugin.
This commit is contained in:
MasterCake 2018-05-21 17:07:57 +02:00 committed by GitHub
commit c421d118e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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