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:
parent
51ad48fdef
commit
10f9ff22a4
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user