(Re)Added setCancelled for chat
This commit is contained in:
parent
39d932bf77
commit
773b142e80
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue