1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 10:04:51 +02:00

Ignore players without IP

This commit is contained in:
snowleo
2012-07-12 11:57:43 +02:00
parent a0b59fd58e
commit cfb93e97f0

View File

@@ -53,7 +53,11 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload
config.acquireReadLock();
try
{
if (event.getPlayer().getAddress() == null || event.getPlayer().getAddress().getAddress() == null) {
return;
}
final InetAddress address = event.getPlayer().getAddress().getAddress();
final StringBuilder builder = new StringBuilder();
if (config.getData().getDatabase().isShowCities())
{