F unclaim can now be used without a faction when bypassing

This commit is contained in:
DroppingAnvil 2020-06-12 18:43:56 -05:00
parent d98c647397
commit 0444517eec
1 changed files with 4 additions and 1 deletions

View File

@ -31,13 +31,16 @@ public class CmdUnclaim extends FCommand {
this.requirements = new CommandRequirements.Builder(Permission.UNCLAIM)
.playerOnly()
.memberOnly()
.withAction(PermissableAction.TERRITORY)
.build();
}
@Override
public void perform(CommandContext context) {
if (!context.fPlayer.isAdminBypassing() && !context.fPlayer.hasFaction()) {
context.fPlayer.msg(TL.GENERIC_MEMBERONLY);
return;
}
if (context.args.size() == 2) {
Faction target = context.argAsFaction(1);