From 908e21002f2ccb317b49b2f2027bb5dba8ee1263 Mon Sep 17 00:00:00 2001 From: HexedHero <6012891+HexedHero@users.noreply.github.com> Date: Sat, 26 Sep 2020 10:48:14 +0100 Subject: [PATCH] Move BlockBreakEvent to HIGHEST closes #124 We don't cancel this event and we need to allow maximum runway for plugins to cancel this event so we don't allow unintended things such as with WorldGuard (Which was fixed with HIGH) but other plugins like Towny is having issues. --- src/main/java/net/Indyuce/mmoitems/listener/ItemUse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmoitems/listener/ItemUse.java b/src/main/java/net/Indyuce/mmoitems/listener/ItemUse.java index d5dc1299..097d6ccb 100644 --- a/src/main/java/net/Indyuce/mmoitems/listener/ItemUse.java +++ b/src/main/java/net/Indyuce/mmoitems/listener/ItemUse.java @@ -172,7 +172,7 @@ public class ItemUse implements Listener { event.setDamage(result.getDamage()); } - @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void c(BlockBreakEvent event) { Player player = event.getPlayer(); Block block = event.getBlock();