1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-24 21:46:16 +00:00

fix: 修复PSET和SET命令参数拦截错误

This commit is contained in:
502647092
2016-05-17 23:52:32 +08:00
parent 6dbae01467
commit 3a63720fe8
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ public class CommandPset extends BaseCommand {
public CommandPset(final ResidenceMain plugin) { public CommandPset(final ResidenceMain plugin) {
super("ps"); super("ps");
this.plugin = plugin; this.plugin = plugin;
setMinimumArguments(2); setMinimumArguments(1);
setOnlyPlayerExecutable(); setOnlyPlayerExecutable();
setPossibleArguments("<residence> [player] [flag|removeall] [true/false/remove]"); setPossibleArguments("<residence> [player] [flag|removeall] [true/false/remove]");
} }

View File

@@ -20,7 +20,7 @@ public class CommandSet extends BaseCommand {
public CommandSet(final ResidenceMain plugin) { public CommandSet(final ResidenceMain plugin) {
super("set"); super("set");
this.plugin = plugin; this.plugin = plugin;
setMinimumArguments(2); setMinimumArguments(0);
setOnlyPlayerExecutable(); setOnlyPlayerExecutable();
setPossibleArguments("<residence> [flag] [true/false/remove]"); setPossibleArguments("<residence> [flag] [true/false/remove]");
} }