summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com/earth2me
diff options
context:
space:
mode:
authorementalo <suror@gmx.co.uk>2012-01-24 22:50:34 +0000
committerementalo <suror@gmx.co.uk>2012-01-24 22:50:34 +0000
commit307c6c7bf0465a741034786686806a9b094df4a1 (patch)
tree6bb3350dead2143d1ddd249efd48e337482a1d68 /EssentialsSpawn/src/com/earth2me
parentcc0e9aa84bc41e341f04202f1f0d2f3c402cf3f4 (diff)
downloadEssentials-307c6c7bf0465a741034786686806a9b094df4a1.tar
Essentials-307c6c7bf0465a741034786686806a9b094df4a1.tar.gz
Essentials-307c6c7bf0465a741034786686806a9b094df4a1.tar.lz
Essentials-307c6c7bf0465a741034786686806a9b094df4a1.tar.xz
Essentials-307c6c7bf0465a741034786686806a9b094df4a1.zip
remove merge leftovers
Don't try to spawn users who have disconnected before we have a chance to spawn them
Diffstat (limited to 'EssentialsSpawn/src/com/earth2me')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index 21bd0d499..de58d86ed 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -7,6 +7,7 @@ import com.earth2me.essentials.api.IUser;
import java.util.logging.Level;
import org.bukkit.Bukkit;
import org.bukkit.Location;
+import org.bukkit.OfflinePlayer;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
@@ -93,6 +94,11 @@ public class EssentialsSpawnPlayerListener implements Listener
@Override
public void run()
{
+ if (user.getBase() instanceof OfflinePlayer)
+ {
+ return;
+ }
+
try
{
final Location spawn = spawns.getNewbieSpawn();