bukkit: Fix '/cfg' and '/cog' commands.

This commit is contained in:
bloodshot 2019-12-31 16:15:16 -05:00
parent 039087cac7
commit 3c1a515e34
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class CommandClaimFlagGroup extends ClaimFlagBase {
@Syntax("<group> <flag> <target> <value> [context[key=value]]")
@Subcommand("flag group")
public void execute(Player player, String group, @Optional String[] args) throws InvalidCommandArgument {
if (args.length < 2 || args.length > 3) {
if (args.length < 2 || args.length > 4) {
throw new InvalidCommandArgument();
}

View File

@ -55,7 +55,7 @@ public class CommandClaimOptionGroup extends ClaimOptionBase {
@Syntax("<group> <option> <value> [context[key=value]]")
@Subcommand("option group")
public void execute(Player player, String group, @Optional String[] args) throws InvalidCommandArgument {
if (args.length < 2 || args.length > 3) {
if (args.length < 2 || args.length > 4) {
throw new InvalidCommandArgument();
}