From 76be9f16f7b422e42d5f90dd9245a25cd30e2714 Mon Sep 17 00:00:00 2001 From: gravitylow Date: Wed, 16 Apr 2014 22:22:32 -0400 Subject: [PATCH] Update block usage to use UUIDs --- .../massivecraft/factions/listeners/FactionsPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index 21b73dbb..01542b63 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -284,7 +284,7 @@ public class FactionsPlayerListener implements Listener { public static boolean canPlayerUseBlock(Player player, Block block, boolean justCheck) { String name = player.getName(); - if (Conf.playersWhoBypassAllProtection.contains(name)) return true; + if (Conf.playersWhoBypassAllProtection.contains(player.getUniqueId())) return true; FPlayer me = FPlayers.i.get(name); if (me.isAdminBypassing()) return true;