summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-02-27 03:40:18 +0000
committerKHobbits <rob@khobbits.co.uk>2012-02-27 03:40:18 +0000
commit340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce (patch)
treed6110e93878e38ab6afb50d7333a1d02de20eea3 /EssentialsSpawn/src
parenta5e3182dadec976ab5117d755b678f75acda8a4f (diff)
downloadEssentials-340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce.tar
Essentials-340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce.tar.gz
Essentials-340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce.tar.lz
Essentials-340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce.tar.xz
Essentials-340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce.zip
Prevent EssSpawn trying to handle spawning of jailed players.
Diffstat (limited to 'EssentialsSpawn/src')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index 083fd66a5..c7a17845a 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -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;