diff options
author | snowleo <schneeleo@gmail.com> | 2013-02-08 21:18:00 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2013-02-08 21:18:00 +0100 |
commit | b5873f28fd447a155fd4662dd310ca3929ceb60c (patch) | |
tree | c13c5311bf05087f68e43c21a1a4deb26aa0e8c0 /EssentialsSpawn | |
parent | 61d53a3347e9381d2291fec7da9f53d9868d1660 (diff) | |
download | Essentials-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.java | 4 |
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()) { |