1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 17:15:07 +02:00

Ignore players, that don't have an IP

This commit is contained in:
Alexander Schepp
2012-07-10 15:57:49 +03:00
parent fbd83d527b
commit 9e819f7de3

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