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 | 335d8b7f20958858e083bd2d4e7e0793ddfe48b7 (patch) | |
tree | aeb1cb3121b31da61eea1d51e46e89f4269a9c73 /EssentialsSpawn/src/com/earth2me/essentials/spawn | |
parent | 379e75f3e605463ebb536318f1bcec95e95b96f8 (diff) | |
download | Essentials-335d8b7f20958858e083bd2d4e7e0793ddfe48b7.tar Essentials-335d8b7f20958858e083bd2d4e7e0793ddfe48b7.tar.gz Essentials-335d8b7f20958858e083bd2d4e7e0793ddfe48b7.tar.lz Essentials-335d8b7f20958858e083bd2d4e7e0793ddfe48b7.tar.xz Essentials-335d8b7f20958858e083bd2d4e7e0793ddfe48b7.zip |
Check if player is still online
Diffstat (limited to 'EssentialsSpawn/src/com/earth2me/essentials/spawn')
-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()) { |