summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-02-27 03:40:18 +0000
committerKHobbits <rob@khobbits.co.uk>2012-02-28 02:45:03 +0000
commit1b780a43641a197e0c75ebc926bf49866d024bcf (patch)
treebbd70c1d6f6c6d5469eb306be2977f383ae04189 /EssentialsSpawn
parentac3e65a82947431b1504d79444d4b0219e20f366 (diff)
downloadEssentials-1b780a43641a197e0c75ebc926bf49866d024bcf.tar
Essentials-1b780a43641a197e0c75ebc926bf49866d024bcf.tar.gz
Essentials-1b780a43641a197e0c75ebc926bf49866d024bcf.tar.lz
Essentials-1b780a43641a197e0c75ebc926bf49866d024bcf.tar.xz
Essentials-1b780a43641a197e0c75ebc926bf49866d024bcf.zip
Prevent EssSpawn trying to handle spawning of jailed players.
Diffstat (limited to 'EssentialsSpawn')
-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;