mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-06 15:50:43 +00:00
Ignore players, that don't have an IP
This commit is contained in:
parent
71e552c0d1
commit
89670bdfd1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue