From 773b142e806cf76d6cd45c0b209abd210da1a366 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 26 Nov 2016 16:29:20 +0100 Subject: [PATCH] (Re)Added setCancelled for chat --- src/main/java/buttondevteam/chat/listener/PlayerListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/buttondevteam/chat/listener/PlayerListener.java b/src/main/java/buttondevteam/chat/listener/PlayerListener.java index b63f06e..5297600 100644 --- a/src/main/java/buttondevteam/chat/listener/PlayerListener.java +++ b/src/main/java/buttondevteam/chat/listener/PlayerListener.java @@ -66,6 +66,7 @@ public class PlayerListener implements Listener { public void onPlayerChat(AsyncPlayerChatEvent event) { if (event.isCancelled()) return; + event.setCancelled(true); TBMCChatAPI.SendChatMessage( TBMCPlayer.getPlayer(event.getPlayer()).asPluginPlayer(ChatPlayer.class).CurrentChannel, event.getPlayer(), event.getMessage());