Change the jail stick event to lowest priority, so it gets called first.

This commit is contained in:
graywolf336 2015-01-10 14:55:44 -06:00
parent 4567a713ec
commit e84452bfd8

View File

@ -212,7 +212,7 @@ public class PlayerListener implements Listener {
}
}
@EventHandler(ignoreCancelled=true)
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled=true)
public void jailStickHandling(EntityDamageByEntityEvent event) {
if(pl.getConfig().getBoolean(Settings.JAILSTICKENABLED.getPath())) {
//If the damager and the entity getting damage is not a player,