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:
parent
e2f5548a5f
commit
2c13dd463c
@ -134,7 +134,7 @@ public class FactionsBlockListener implements Listener {
|
|||||||
String name = player.getName();
|
String name = player.getName();
|
||||||
if (Conf.playersWhoBypassAllProtection.contains(name)) return true;
|
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;
|
if (me.isAdminBypassing()) return true;
|
||||||
|
|
||||||
FLocation loc = new FLocation(location);
|
FLocation loc = new FLocation(location);
|
||||||
|
Loading…
Reference in New Issue
Block a user