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.
This commit is contained in:
HexedHero 2020-09-26 10:48:14 +01:00
parent f4a20057d0
commit 908e21002f

View File

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