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:
parent
550c7d5368
commit
97191a3f7d
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user