+ fix command

master
坏黑 2019-11-05 22:58:54 +08:00
parent 55bc674063
commit 52376cd15e
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public abstract class BaseSubCommand {
}
public Argument[] getArguments() {
return Arrays.stream(annotation.aliases()).map(a -> a.endsWith("?") ? new Argument(a.substring(0, a.length() - 1), false) : new Argument(a)).toArray(Argument[]::new);
return Arrays.stream(annotation.arguments()).map(a -> a.endsWith("?") ? new Argument(a.substring(0, a.length() - 1), false) : new Argument(a)).toArray(Argument[]::new);
}
public CommandType getType() {