+ fix command
This commit is contained in:
parent
55bc674063
commit
52376cd15e
@ -39,7 +39,7 @@ public abstract class BaseSubCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Argument[] getArguments() {
|
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() {
|
public CommandType getType() {
|
||||||
|
Loading…
Reference in New Issue
Block a user