Modifier | Constructor and Description |
---|---|
protected |
Options() |
Modifier and Type | Method and Description |
---|---|
Command.Options |
def(boolean value)
Is this a default command? For example a help command.
|
Command.Options |
description(java.lang.String description)
Description that will show for this command in the help command
|
Command.Options |
handlers(java.lang.String... handlers)
Which handlers should be able to process this command? Leave empty for it to be runnable on all handlers.
|
Command.Options |
permissions(java.lang.String... permissions)
What permissions will the User need to run this command? Leave empty for no permissions needed.
|
Command.Options |
usage(java.lang.String usage)
Command's usage, should be self explanatory, but an example is <required args> [optional args].
|
public Command.Options handlers(java.lang.String... handlers)
handlers
- Handler referencespublic Command.Options description(java.lang.String description)
description
- String describing the command, keep it shortpublic Command.Options usage(java.lang.String usage)
usage
- Stringpublic Command.Options permissions(java.lang.String... permissions)
permissions
- Permissionspublic Command.Options def(boolean value)
value
- Boolean