Uses of Class
org.cloudburstmc.server.command.data.CommandData.Builder
Packages that use CommandData.Builder
-
Uses of CommandData.Builder in org.cloudburstmc.server.command.data
Methods in org.cloudburstmc.server.command.data that return CommandData.BuilderModifier and TypeMethodDescriptionAdds the alias to the set of aliases for this Command.CommandData.Builder.addAliases(@NonNull String... aliases)Adds all the aliases in the passed String collection, without clearing the current aliases.CommandData.Builder.addParameters(@NonNull CommandParameter[]... paramSet)Adds the set of parameters as a Command overload, without clearing the current overloads.CommandData.Builder.addPermission(@NonNull String permission)Adds the passed permission String to the list of allowed permissions.CommandData.Builder.addPermissions(@NonNull 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.BuilderCommandData.Builder.setAliases(@NonNull String... aliases)Clears the current aliases and sets the passed collection of Strings as the new aliases.CommandData.Builder.setDescription(@NonNull String description)Sets the description string for this Command.CommandData.Builder.setParameters(@NonNull List<CommandParameter[]> parameters)Clears the command overloads and sets the passed collection as the overloads for this Command.CommandData.Builder.setParameters(@NonNull CommandParameter[]... paramSet)Clears the command overloads and sets the passed collection as the overloads for this Command.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.setPermissions(@NonNull String... permissions)Clears all current permissions and sets as the passed in collection.CommandData.Builder.setUsageMessage(@NonNull String usage)Sets the usage message.