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

View File

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