mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-12 18:31:36 +01:00
Ignore players, that don't have an IP
This commit is contained in:
parent
71e552c0d1
commit
89670bdfd1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user