From 2c13dd463c3876bb24e925251a001ff7e3c6109c Mon Sep 17 00:00:00 2001 From: "CoOwner/Developer for @ArkhamNetwork - Java, PHP, Redis, LAMP" Date: Wed, 16 Apr 2014 20:07:08 +0100 Subject: [PATCH] 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. --- .../massivecraft/factions/listeners/FactionsBlockListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java index 62c70c9a..c09d5e05 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java @@ -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);