mirror of
https://github.com/essentials/Essentials.git
synced 2025-01-17 21:39:26 +01: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:
parent
1df39a282f
commit
c0f1af3714
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user