Handle cancelled chat events properly

This commit is contained in:
Mike Primm 2012-02-06 20:31:41 -06:00
parent dd0f0c7128
commit 9b31f30f14

View File

@ -272,6 +272,8 @@ public class BukkitEventProcessor {
@Override
public void onPlayerChat(PlayerChatEvent event) {
if(event.isCancelled())
return;
/* Call listeners */
List<Listener> ll = event_handlers.get(event.getType());
if(ll != null) {