diff options
author | Alexander Schepp <schneeleo@gmail.com> | 2012-07-10 15:57:49 +0300 |
---|---|---|
committer | Alexander Schepp <schneeleo@gmail.com> | 2012-07-10 15:57:49 +0300 |
commit | 9e819f7de39cf6a4e29b2442b8c3b2fa78b94bad (patch) | |
tree | 7d78fcc29d27b46fc10680886d649d24e8e6fee1 | |
parent | fbd83d527b4f5dfe483b1dd7e08057e30d47d0b1 (diff) | |
download | Essentials-9e819f7de39cf6a4e29b2442b8c3b2fa78b94bad.tar Essentials-9e819f7de39cf6a4e29b2442b8c3b2fa78b94bad.tar.gz Essentials-9e819f7de39cf6a4e29b2442b8c3b2fa78b94bad.tar.lz Essentials-9e819f7de39cf6a4e29b2442b8c3b2fa78b94bad.tar.xz Essentials-9e819f7de39cf6a4e29b2442b8c3b2fa78b94bad.zip |
Ignore players, that don't have an IP
-rw-r--r-- | EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java | 2 |
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 0018d09b4..ab72cfa9f 100644 --- a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java +++ b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java @@ -45,7 +45,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IConf public void onPlayerJoin(PlayerJoinEvent event) { User u = ess.getUser(event.getPlayer()); - if (u.isAuthorized("essentials.geoip.hide")) + if (u.isAuthorized("essentials.geoip.hide") || event.getPlayer().getAddress() == null) { return; } |