mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 06:07:54 +02:00
[trunk] GeoIP: New permission: essentials.geoip.hide
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1295 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -41,6 +41,11 @@ public class EssentialsGeoIPPlayerListener extends PlayerListener implements ICo
|
||||
@Override
|
||||
public void onPlayerJoin(PlayerJoinEvent event)
|
||||
{
|
||||
User u = User.get(event.getPlayer());
|
||||
if (u.isAuthorized("essentials.geoip.hide"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
InetAddress address = event.getPlayer().getAddress().getAddress();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (config.getBoolean("database.show-cities", false))
|
||||
|
Reference in New Issue
Block a user