diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-02-27 03:40:18 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-02-27 03:40:18 +0000 |
commit | 340f0c68eb3b79cd20fc96dd23c0a4e50cde7bce (patch) | |
tree | d6110e93878e38ab6afb50d7333a1d02de20eea3 /EssentialsSpawn/src | |
parent | a5e3182dadec976ab5117d755b678f75acda8a4f (diff) | |
download | Essentials-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.java | 5 |
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; |