summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2013-02-08 21:18:00 +0100
committersnowleo <schneeleo@gmail.com>2013-02-08 21:18:00 +0100
commitb5873f28fd447a155fd4662dd310ca3929ceb60c (patch)
treec13c5311bf05087f68e43c21a1a4deb26aa0e8c0 /EssentialsSpawn
parent61d53a3347e9381d2291fec7da9f53d9868d1660 (diff)
downloadEssentials-b5873f28fd447a155fd4662dd310ca3929ceb60c.tar
Essentials-b5873f28fd447a155fd4662dd310ca3929ceb60c.tar.gz
Essentials-b5873f28fd447a155fd4662dd310ca3929ceb60c.tar.lz
Essentials-b5873f28fd447a155fd4662dd310ca3929ceb60c.tar.xz
Essentials-b5873f28fd447a155fd4662dd310ca3929ceb60c.zip
Check if player is still online
Diffstat (limited to 'EssentialsSpawn')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index 0ff6a8cb2..eecbe5b03 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -101,6 +101,10 @@ public class EssentialsSpawnPlayerListener implements Listener
@Override
public void run()
{
+ if (!user.isOnline()) {
+ return;
+ }
+
//This method allows for multiple line player announce messages using multiline yaml syntax #EasterEgg
if (ess.getSettings().getAnnounceNewPlayers())
{