From d63f54d540a0b114f258f8e4b09de474be174379 Mon Sep 17 00:00:00 2001 From: Jacek Kobus Date: Wed, 19 Mar 2014 01:07:32 +0100 Subject: [PATCH] Chestshop ignores event cancellation Plugins with LOWEST priority cancel the event but chestshop ignores that flag and continues anyway. --- .../com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java index e8798cf..e618d68 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java @@ -42,7 +42,7 @@ import static org.bukkit.event.block.Action.RIGHT_CLICK_BLOCK; */ public class PlayerInteract implements Listener { - @EventHandler(priority = EventPriority.HIGHEST) + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public static void onInteract(PlayerInteractEvent event) { Block block = event.getClickedBlock();