From 57ac2c8c982adc2d349a112d70a0d4054e7b5eb2 Mon Sep 17 00:00:00 2001 From: DroppingAnvil Date: Sat, 18 Jan 2020 21:25:46 -0600 Subject: [PATCH] Fix getAccess for leaders --- .../com/massivecraft/factions/zcore/persist/MemoryFaction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java index 7f7a3443..dc6e0b0f 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFaction.java @@ -883,7 +883,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator { */ public Access getAccess(FPlayer player, PermissableAction permissableAction) { if (player == null || permissableAction == null) return Access.UNDEFINED; - + if (player.getFaction() == this && player.getRole() == Role.LEADER) return Access.ALLOW; Permissable perm = player.getFaction() == this ? player.getRole() : player.getFaction().getRelationTo(this);