From 013c1d8147c203bf0e76313d6a8d15212e423168 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 1 May 2011 11:57:57 +0000 Subject: [trunk] GeoIP: New permission: essentials.geoip.hide git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1295 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'EssentialsGeoIP/src') 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)) -- cgit v1.2.3