summaryrefslogtreecommitdiffstats
path: root/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-11 03:27:01 +0100
committersnowleo <schneeleo@gmail.com>2011-11-11 03:27:09 +0100
commitcd897890be57a6162ee0281a476de3f58f998882 (patch)
treeb7d32b90909517137f2e9c5fabd42c7e32b15cb9 /EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
parent90c9fe7e65cfd6077889a7346bf1888b4dae0050 (diff)
downloadEssentials-cd897890be57a6162ee0281a476de3f58f998882.tar
Essentials-cd897890be57a6162ee0281a476de3f58f998882.tar.gz
Essentials-cd897890be57a6162ee0281a476de3f58f998882.tar.lz
Essentials-cd897890be57a6162ee0281a476de3f58f998882.tar.xz
Essentials-cd897890be57a6162ee0281a476de3f58f998882.zip
Fix #1106 GeoIP announces players who are hidden, on join.
Diffstat (limited to 'EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java')
-rw-r--r--EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
index 5a6553f0e..8926f77e8 100644
--- a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
+++ b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
@@ -79,7 +79,7 @@ public class EssentialsGeoIPPlayerListener extends PlayerListener implements ICo
{
u.setGeoLocation(sb.toString());
}
- if (config.getBoolean("show-on-login", true))
+ if (config.getBoolean("show-on-login", true) && !u.isHidden())
{
for (Player player : event.getPlayer().getServer().getOnlinePlayers())
{