Actually allow cancellation of player chat events

Dieser Commit ist enthalten in:
Animosity 2011-01-05 10:47:57 +08:00 committet von Dinner Bone
Ursprung 8e66e52958
Commit 4792d55a08

Datei anzeigen

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