mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-30 14:13:52 +01:00
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