Ignore event true.

https://github.com/BentoBoxWorld/Limits/issues/51
This commit is contained in:
tastybento 2019-11-09 14:46:30 -08:00
parent 6b54fc5b8e
commit d97fa9b9ae
1 changed files with 8 additions and 8 deletions

View File

@ -146,12 +146,12 @@ public class BlockLimitsListener implements Listener {
}
// Player-related events
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = false)
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onBlock(BlockPlaceEvent e) {
notify(e, User.getInstance(e.getPlayer()), process(e.getBlock(), true), e.getBlock().getType());
}
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = false)
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onBlock(BlockBreakEvent e) {
handleBreak(e, e.getPlayer(), e.getBlock());
}