summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-06-16 17:31:33 +0100
committerKHobbits <rob@khobbits.co.uk>2012-06-16 17:31:33 +0100
commit669edfc0482b21d80114d7e7cd1e2b74d1aa498f (patch)
tree4cfe14d549b2944076eae7e058bb30335f42301b
parent0a9c88a990c5b66e3beab3de80b2287e8875d772 (diff)
downloadEssentials-669edfc0482b21d80114d7e7cd1e2b74d1aa498f.tar
Essentials-669edfc0482b21d80114d7e7cd1e2b74d1aa498f.tar.gz
Essentials-669edfc0482b21d80114d7e7cd1e2b74d1aa498f.tar.lz
Essentials-669edfc0482b21d80114d7e7cd1e2b74d1aa498f.tar.xz
Essentials-669edfc0482b21d80114d7e7cd1e2b74d1aa498f.zip
Prevent joinbots from triggering join code, unless they are actually connected to the server and online.
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index 422b63086..369eb3808 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -140,6 +140,10 @@ public class EssentialsPlayerListener implements Listener
public void delayedJoin(final Player player)
{
+ if (!player.isOnline())
+ {
+ return;
+ }
ess.getBackup().onPlayerJoin();
final User user = ess.getUser(player);
user.setDisplayNick();