1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

We HAVE to ignore canceled events

This commit is contained in:
Zrips 2021-06-21 17:37:49 +03:00
parent 51ad48fdef
commit 10f9ff22a4
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ public final class JobsPayment14Listener implements Listener {
}
}
@EventHandler
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBlockBreak(BlockBreakEvent event) {
if (event.getBlock().getType() != Material.CAMPFIRE || campPlayers.isEmpty())
return;

View File

@ -390,7 +390,7 @@ public final class JobsPaymentListener implements Listener {
Jobs.action(jPlayer, new ItemActionInfo(contents, ActionType.BREW));
}
@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onBlockBreak(BlockBreakEvent event) {
final Block block = event.getBlock();