diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-01 11:57:57 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-01 11:57:57 +0000 |
commit | c0f1af37141e18149712876bea53f7a114b8f5bb (patch) | |
tree | 1da3c29d523607168614d25cc350087df4f40cc9 /EssentialsGeoIP/src/com | |
parent | 1df39a282ffbcbd6862d8c564f2e50b044c91ea1 (diff) | |
download | Essentials-c0f1af37141e18149712876bea53f7a114b8f5bb.tar Essentials-c0f1af37141e18149712876bea53f7a114b8f5bb.tar.gz Essentials-c0f1af37141e18149712876bea53f7a114b8f5bb.tar.lz Essentials-c0f1af37141e18149712876bea53f7a114b8f5bb.tar.xz Essentials-c0f1af37141e18149712876bea53f7a114b8f5bb.zip |
[trunk] GeoIP: New permission: essentials.geoip.hide
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1295 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsGeoIP/src/com')
-rw-r--r-- | EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java index 2d9bd7749..d2b431a6b 100644 --- a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java +++ b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java @@ -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)) |