(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) {
|
public void onPlayerChat(AsyncPlayerChatEvent event) {
|
||||||
if (event.isCancelled())
|
if (event.isCancelled())
|
||||||
return;
|
return;
|
||||||
|
event.setCancelled(true);
|
||||||
TBMCChatAPI.SendChatMessage(
|
TBMCChatAPI.SendChatMessage(
|
||||||
TBMCPlayer.getPlayer(event.getPlayer()).asPluginPlayer(ChatPlayer.class).CurrentChannel,
|
TBMCPlayer.getPlayer(event.getPlayer()).asPluginPlayer(ChatPlayer.class).CurrentChannel,
|
||||||
event.getPlayer(), event.getMessage());
|
event.getPlayer(), event.getMessage());
|
||||||
|
|
Loading…
Reference in a new issue