summaryrefslogtreecommitdiffstats
path: root/EssentialsGeoIP/src
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-02-05 17:19:32 +0100
committersnowleo <schneeleo@gmail.com>2012-02-05 17:19:32 +0100
commit8ab5bad988f7ad9c8a1fafd504cf108f3ec84cc3 (patch)
tree2a33da8fbb378cedbb7210ee80edd1f1891efb87 /EssentialsGeoIP/src
parent8080abacd6fc379acba4136d0b854d780f262f4e (diff)
downloadEssentials-8ab5bad988f7ad9c8a1fafd504cf108f3ec84cc3.tar
Essentials-8ab5bad988f7ad9c8a1fafd504cf108f3ec84cc3.tar.gz
Essentials-8ab5bad988f7ad9c8a1fafd504cf108f3ec84cc3.tar.lz
Essentials-8ab5bad988f7ad9c8a1fafd504cf108f3ec84cc3.tar.xz
Essentials-8ab5bad988f7ad9c8a1fafd504cf108f3ec84cc3.zip
Modified BetterLocation, and new Permission-System
Diffstat (limited to 'EssentialsGeoIP/src')
-rw-r--r--EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
index 19cc06dc4..45d21d89c 100644
--- a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
+++ b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/EssentialsGeoIPPlayerListener.java
@@ -4,6 +4,7 @@ import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.api.IEssentials;
import com.earth2me.essentials.api.IReload;
import com.earth2me.essentials.api.IUser;
+import com.earth2me.essentials.perm.Permissions;
import com.maxmind.geoip.Location;
import com.maxmind.geoip.LookupService;
import com.maxmind.geoip.regionName;
@@ -45,7 +46,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload
public void onPlayerJoin(final PlayerJoinEvent event)
{
final IUser u = ess.getUser(event.getPlayer());
- if (u.isAuthorized("essentials.geoip.hide"))
+ if (Permissions.GEOIP_HIDE.isAuthorized(u))
{
return;
}
@@ -93,7 +94,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload
for (Player player : event.getPlayer().getServer().getOnlinePlayers())
{
final IUser user = ess.getUser(player);
- if (user.isAuthorized("essentials.geoip.show"))
+ if (Permissions.GEOIP_SHOW.isAuthorized(user))
{
user.sendMessage(_("geoipJoinFormat", user.getDisplayName(), builder.toString()));
}