@Retention(value=RUNTIME)
public @interface Command
CommandsManager
that the method is a command.
Note that the method name can actually be anything.Modifier and Type | Required Element and Description |
---|---|
java.lang.String[] |
aliases
A list of aliases for the command.
|
java.lang.String |
desc |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
anyFlags
Get whether any flag can be used.
|
java.lang.String |
flags
Flags allow special processing for flags such as -h in the command,
allowing users to easily turn on a flag.
|
java.lang.String |
help |
int |
max
The maximum number of arguments.
|
int |
min
The minimum number of arguments.
|
java.lang.String |
usage
Usage instruction.
|
public abstract java.lang.String[] aliases
public abstract java.lang.String usage
[-h harps] [name] [message]
.public abstract int min
public abstract int max
public abstract java.lang.String flags