Fix getAccess for leaders

This commit is contained in:
DroppingAnvil 2020-01-18 21:25:46 -06:00 committed by droppinganvil
parent 25515d863e
commit 57ac2c8c98

View File

@ -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);