(Re)Added setCancelled for chat

This commit is contained in:
Norbi Peti 2016-11-26 16:29:20 +01:00
parent 39d932bf77
commit 773b142e80

View file

@ -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());