Fix getting the wrong faction from player

This fixes factions getting the wrong faction from a player. Before it was returning a wrong faction and the player could not build in his/her own land.
This commit is contained in:
CoOwner/Developer for @ArkhamNetwork - Java, PHP, Redis, LAMP 2014-04-16 20:07:08 +01:00
parent e2f5548a5f
commit 2c13dd463c
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class FactionsBlockListener implements Listener {
String name = player.getName();
if (Conf.playersWhoBypassAllProtection.contains(name)) return true;
FPlayer me = FPlayers.i.get(name);
FPlayer me = FPlayers.i.get(player.getUniqueId().toString());
if (me.isAdminBypassing()) return true;
FLocation loc = new FLocation(location);