Change the priority of the crop trampling to be called first so it
cancels the event before any other interact event gets it.
This commit is contained in:
parent
863793543f
commit
1e3a8cc992
@ -207,7 +207,7 @@ public class ProtectionListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled=true)
|
@EventHandler(ignoreCancelled=true, priority = EventPriority.LOWEST)
|
||||||
public void cropTramplingProtection(PlayerInteractEvent event) {
|
public void cropTramplingProtection(PlayerInteractEvent event) {
|
||||||
//First thing is first, let's be sure the player we're dealing with is in jail
|
//First thing is first, let's be sure the player we're dealing with is in jail
|
||||||
if(pl.getJailManager().isPlayerJailed(event.getPlayer().getName())) {
|
if(pl.getJailManager().isPlayerJailed(event.getPlayer().getName())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user