mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-02 14:29:07 +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) {
|
public void onBlockBreak(BlockBreakEvent event) {
|
||||||
if (event.getBlock().getType() != Material.CAMPFIRE || campPlayers.isEmpty())
|
if (event.getBlock().getType() != Material.CAMPFIRE || campPlayers.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
@ -390,7 +390,7 @@ public final class JobsPaymentListener implements Listener {
|
|||||||
Jobs.action(jPlayer, new ItemActionInfo(contents, ActionType.BREW));
|
Jobs.action(jPlayer, new ItemActionInfo(contents, ActionType.BREW));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onBlockBreak(BlockBreakEvent event) {
|
public void onBlockBreak(BlockBreakEvent event) {
|
||||||
final Block block = event.getBlock();
|
final Block block = event.getBlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user