1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-30 01:39:51 +02:00

Some user matching updates

This commit is contained in:
ementalo
2012-07-20 12:12:21 +01:00
parent ea1cce76f9
commit 26e5b52c26
60 changed files with 172 additions and 201 deletions

View File

@@ -45,7 +45,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload
@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerJoin(final PlayerJoinEvent event)
{
final IUser u = ess.getUser(event.getPlayer());
final IUser u = ess.getUserMap().getUser(event.getPlayer());
if (Permissions.GEOIP_HIDE.isAuthorized(u))
{
return;
@@ -97,7 +97,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload
{
for (Player player : event.getPlayer().getServer().getOnlinePlayers())
{
final IUser user = ess.getUser(player);
final IUser user = ess.getUserMap().getUser(player);
if (Permissions.GEOIP_SHOW.isAuthorized(user))
{
user.sendMessage(_("geoipJoinFormat", user.getDisplayName(), builder.toString()));