@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Shortcut
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.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
value |