Ignore players, that don't have an IP

This commit is contained in:
Alexander Schepp 2012-07-10 15:57:49 +03:00
parent 71e552c0d1
commit 89670bdfd1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}