Update block usage to use UUIDs
This commit is contained in:
parent
da16b662b4
commit
76be9f16f7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user