Fixed some code with Rage's PR

This commit is contained in:
ProSavage 2019-05-12 09:43:44 -05:00
parent 135b961661
commit eb2a5033f6

View File

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