Chestshop ignores event cancellation

Plugins with LOWEST priority cancel the event but chestshop ignores that flag and continues anyway.
This commit is contained in:
Jacek Kobus 2014-03-19 01:07:32 +01:00
parent 385fe2acbf
commit d63f54d540

View File

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