Fixed some code with Rage's PR
This commit is contained in:
parent
135b961661
commit
eb2a5033f6
@ -38,8 +38,8 @@ public class CmdClaim extends FCommand {
|
|||||||
final Faction forFaction = this.argAsFaction(1, myFaction); // Default to own
|
final Faction forFaction = this.argAsFaction(1, myFaction); // Default to own
|
||||||
|
|
||||||
if (!fme.isAdminBypassing()) {
|
if (!fme.isAdminBypassing()) {
|
||||||
Access access = myFaction.getAccess(fme, PermissableAction.CLAIM);
|
Access access = myFaction.getAccess(fme, PermissableAction.TERRITORY);
|
||||||
if (access != Access.ALLOW && fme.getRole() != Role.ADMIN) {
|
if (access != Access.ALLOW && fme.getRole() != Role.LEADER) {
|
||||||
fme.msg(TL.GENERIC_NOPERMISSION, "change faction territory");
|
fme.msg(TL.GENERIC_NOPERMISSION, "change faction territory");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user