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:
graywolf336 2014-01-21 21:44:58 -06:00
parent 863793543f
commit 1e3a8cc992

View File

@ -207,7 +207,7 @@ public class ProtectionListener implements Listener {
}
}
@EventHandler(ignoreCancelled=true)
@EventHandler(ignoreCancelled=true, priority = EventPriority.LOWEST)
public void cropTramplingProtection(PlayerInteractEvent event) {
//First thing is first, let's be sure the player we're dealing with is in jail
if(pl.getJailManager().isPlayerJailed(event.getPlayer().getName())) {