Register the respawn listener with a higher priority, for #55

Since another plugin might interfere and teleport someone elsewhere
which isn't inside the Jail.
This commit is contained in:
graywolf336 2015-03-12 23:37:01 -05:00
parent 550c7d5368
commit 97191a3f7d

View File

@ -199,7 +199,7 @@ public class PlayerListener implements Listener {
}
}
@EventHandler
@EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerRespawn(PlayerRespawnEvent event) {
if(pl.getJailManager().isPlayerJailed(event.getPlayer().getUniqueId())) {
Jail j = pl.getJailManager().getJailPlayerIsIn(event.getPlayer().getUniqueId());