summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schepp <schneeleo@gmail.com>2012-07-10 15:57:49 +0300
committerAlexander Schepp <schneeleo@gmail.com>2012-07-10 15:57:49 +0300
commit89670bdfd18b9dc8df4e8a58980a4fadf9c69abf (patch)
treeece014e87db0a397d3b247f203b342393b7c49ba
parent71e552c0d1e7dbb8002ac733788034c60aec45f4 (diff)
downloadEssentials-89670bdfd18b9dc8df4e8a58980a4fadf9c69abf.tar
Essentials-89670bdfd18b9dc8df4e8a58980a4fadf9c69abf.tar.gz
Essentials-89670bdfd18b9dc8df4e8a58980a4fadf9c69abf.tar.lz
Essentials-89670bdfd18b9dc8df4e8a58980a4fadf9c69abf.tar.xz
Essentials-89670bdfd18b9dc8df4e8a58980a4fadf9c69abf.zip
Ignore players, that don't have an IP
-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 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;
}