@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 |
|---|---|
String[] |
aliases
A list of aliases for the command.
|
String |
desc |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
anyFlags |
String |
flags
Flags allow special processing for flags such as -h in the command,
allowing users to easily turn on a flag.
|
String |
help |
int |
max
The maximum number of arguments.
|
int |
min
The minimum number of arguments.
|
String |
usage
Usage instruction.
|
public abstract String[] aliases
public abstract String desc
public abstract String usage
[-h harps] [name] [message].public abstract int min
public abstract int max
public abstract String flags
public abstract String help
public abstract boolean anyFlags
flags()Copyright © 2010-2014. All Rights Reserved.