mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Actually allow cancellation of player chat events
This commit is contained in:
1 parent
8e66e52958
commit
4792d55a08
1 file changed
+1
@@ -419,6 +419,7 @@ implements ICommandListener {
|
||||
PlayerChatEvent event = new PlayerChatEvent(Type.PLAYER_CHAT, player, s);
|
||||
server.getPluginManager().callEvent(event);
|
||||
s = (new StringBuilder()).append("<").append(event.getPlayer().getName()).append("> ").append(event.getMessage()).toString();
|
||||
if (event.isCancelled()) return;
|
||||
// CraftBukkit stop
|
||||
|
||||
a.info(s);
|
||||
|
||||
Reference in new issue
Block a user