F unclaim can now be used without a faction when bypassing
This commit is contained in:
parent
d98c647397
commit
0444517eec
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user