Prevent EssSpawn trying to handle spawning of jailed players.

This commit is contained in:
KHobbits 2012-02-27 03:40:18 +00:00
parent a5e3182dad
commit 340f0c68eb

View File

@ -35,6 +35,11 @@ public class EssentialsSpawnPlayerListener implements Listener
{
final User user = ess.getUser(event.getPlayer());
if (user.isJailed() && user.getJail() != null && !user.getJail().isEmpty())
{
return;
}
if (ess.getSettings().getRespawnAtHome())
{
Location home;