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
commit3af589bfd8f39163aedd52774e3ed22c6feca1e9 (patch)
treeee4f9d5e79478e730441b8762cdf6b7ab5a54900 /EssentialsSpawn
parent3b01f4cd1bbcb6ced2d697c3b118b4798521faa8 (diff)
downloadEssentials-3af589bfd8f39163aedd52774e3ed22c6feca1e9.tar
Essentials-3af589bfd8f39163aedd52774e3ed22c6feca1e9.tar.gz
Essentials-3af589bfd8f39163aedd52774e3ed22c6feca1e9.tar.lz
Essentials-3af589bfd8f39163aedd52774e3ed22c6feca1e9.tar.xz
Essentials-3af589bfd8f39163aedd52774e3ed22c6feca1e9.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;