mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-08 07:27:39 +01:00
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:
parent
f4a20057d0
commit
908e21002f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user