Fix getAccess for leaders
This commit is contained in:
parent
25515d863e
commit
57ac2c8c98
@ -883,7 +883,7 @@ public abstract class MemoryFaction implements Faction, EconomyParticipator {
|
|||||||
*/
|
*/
|
||||||
public Access getAccess(FPlayer player, PermissableAction permissableAction) {
|
public Access getAccess(FPlayer player, PermissableAction permissableAction) {
|
||||||
if (player == null || permissableAction == null) return Access.UNDEFINED;
|
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);
|
Permissable perm = player.getFaction() == this ? player.getRole() : player.getFaction().getRelationTo(this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user