From d49d2243d8aa54e46540245edb9fc14d9494f361 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Mon, 30 Dec 2013 22:03:33 -0600 Subject: [PATCH] Ignore the cancelled events --- .../java/com/graywolf336/jail/listeners/PlayerListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java b/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java index 86d3a45..c178ef8 100644 --- a/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java +++ b/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java @@ -21,7 +21,7 @@ public class PlayerListener implements Listener { this.pl = plugin; } - @EventHandler + @EventHandler(ignoreCancelled=true) public void jailOrCellCreation(PlayerInteractEvent event) { if(event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) { Player p = event.getPlayer(); @@ -42,7 +42,7 @@ public class PlayerListener implements Listener { } } - @EventHandler + @EventHandler(ignoreCancelled=true) public void chatting(AsyncPlayerChatEvent event) { if(pl.getJailManager().isPlayerJailed(event.getPlayer().getName())) { if(pl.getJailManager().getPrisoner(event.getPlayer().getName()).isMuted()) {