Annotation Interface Shortcut
Is used to register a shortcut for the sub command executor.
It has to be declared on the method annotated with
Execute
with name specified (cannot be used with root executor).
Example:
@Command(name = "team")
public class TeamCommand {
@Execute(name = "add")
@Shortcut("t-add")
void execute() {
// ...
}
}
Class above would register command /team add and its shortcut /t-add.-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] value
-