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

Change event priority to HIGHEST so other plugins can listen to BlockBreakEvent after Jobs (#1197)

This commit is contained in:
vk2gpz 2021-05-29 00:47:14 +10:00 committed by GitHub
parent 8d65bb7b7e
commit f8d16fdfff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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