mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-09-24 04:02:48 +02:00
bukkit: Fix '/cfg' and '/cog' commands.
This commit is contained in:
parent
039087cac7
commit
3c1a515e34
@ -55,7 +55,7 @@ public CommandClaimFlagGroup() {
|
|||||||
@Syntax("<group> <flag> <target> <value> [context[key=value]]")
|
@Syntax("<group> <flag> <target> <value> [context[key=value]]")
|
||||||
@Subcommand("flag group")
|
@Subcommand("flag group")
|
||||||
public void execute(Player player, String group, @Optional String[] args) throws InvalidCommandArgument {
|
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();
|
throw new InvalidCommandArgument();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public CommandClaimOptionGroup() {
|
|||||||
@Syntax("<group> <option> <value> [context[key=value]]")
|
@Syntax("<group> <option> <value> [context[key=value]]")
|
||||||
@Subcommand("option group")
|
@Subcommand("option group")
|
||||||
public void execute(Player player, String group, @Optional String[] args) throws InvalidCommandArgument {
|
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();
|
throw new InvalidCommandArgument();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user