From 0444517eec94f969b84b3927cde204ff3bcc3a53 Mon Sep 17 00:00:00 2001 From: DroppingAnvil Date: Fri, 12 Jun 2020 18:43:56 -0500 Subject: [PATCH] F unclaim can now be used without a faction when bypassing --- .../java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java b/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java index d193b2cf..b6f747fa 100644 --- a/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java +++ b/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java @@ -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);