| Package | Description |
|---|---|
| org.cloudburstmc.server.command.data |
| Modifier and Type | Method and Description |
|---|---|
CommandData.Builder |
CommandData.Builder.addAlias(@NonNull String alias)
Adds the alias to the set of aliases for this Command.
|
CommandData.Builder |
CommandData.Builder.addAliases(String... aliases)
Adds all the aliases in the passed String collection, without clearing the current aliases.
|
CommandData.Builder |
CommandData.Builder.addParameters(CommandParameter[]... paramSet)
Adds the set of parameters as a Command overload, without clearing the current overloads.
|
CommandData.Builder |
CommandData.Builder.addPermission(@NonNull String permission)
Adds the passed permission String to the list of allowed permissions.
|
CommandData.Builder |
CommandData.Builder.addPermissions(String... permissions)
Adds all of the permissions in the passed String collection to the list of allowed permissions,
without clearing the current permissions set.
|
static CommandData.Builder |
CommandData.builder(@NonNull String commandName) |
CommandData.Builder |
CommandData.Builder.setAliases(String... aliases)
Clears the current aliases and sets the passed collection of Strings as the new aliases.
|
CommandData.Builder |
CommandData.Builder.setDescription(@NonNull String description)
Sets the description string for this Command.
|
CommandData.Builder |
CommandData.Builder.setParameters(CommandParameter[]... paramSet)
Clears the command overloads and sets the passed collection as the overloads for this Command.
|
CommandData.Builder |
CommandData.Builder.setParameters(@NonNull List<CommandParameter[]> parameters)
Clears the command overloads and sets the passed collection as the overloads for this Command.
|
CommandData.Builder |
CommandData.Builder.setPermissionMessage(@NonNull String message)
Sets the message to send to the user when they lack the required permissions to run this
Command.
|
CommandData.Builder |
CommandData.Builder.setPermissions(String... permissions)
Clears all current permissions and sets as the passed in collection.
|
CommandData.Builder |
CommandData.Builder.setUsageMessage(@NonNull String usage)
Sets the usage message.
|
Copyright © 2020. All rights reserved.