Class CommandSpec.Builder
java.lang.Object
dev.plex.command.CommandSpec.Builder
- Enclosing class:
CommandSpec
Builder for command specs.
-
Method Summary
Modifier and TypeMethodDescriptionSets comma-separated command aliases.Sets command aliases.build()Builds the command spec.description(String description) Sets the command description.permission(String permission) Sets the required permission node.source(RequiredCommandSource requiredSource) Sets the required command source.Sets the command usage text.
-
Method Details
-
description
Sets the command description.- Parameters:
description- command description- Returns:
- this builder
-
usage
Sets the command usage text.- Parameters:
usage- command usage text- Returns:
- this builder
-
aliases
Sets comma-separated command aliases.- Parameters:
aliases- comma-separated command aliases- Returns:
- this builder
-
aliases
Sets command aliases.- Parameters:
aliases- command aliases- Returns:
- this builder
-
permission
Sets the required permission node.- Parameters:
permission- permission node- Returns:
- this builder
-
source
Sets the required command source.- Parameters:
requiredSource- required command source- Returns:
- this builder
-
build
-