Update block usage to use UUIDs

This commit is contained in:
gravitylow 2014-04-16 22:22:32 -04:00
parent da16b662b4
commit 76be9f16f7

View File

@ -284,7 +284,7 @@ public class FactionsPlayerListener implements Listener {
public static boolean canPlayerUseBlock(Player player, Block block, boolean justCheck) { public static boolean canPlayerUseBlock(Player player, Block block, boolean justCheck) {
String name = player.getName(); 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); FPlayer me = FPlayers.i.get(name);
if (me.isAdminBypassing()) return true; if (me.isAdminBypassing()) return true;