CommandData

data class CommandData(val name: String, val aliases: Set<String>, val description: String, val subCommandName: String?, val permissions: Set<String>, val arguments: List<ParsableArgument<*>>, val optionalArguments: List<ParsableArgument<*>>, val mcCommand: Command?)

Data class representing command metadata.

Constructors

Link copied to clipboard
constructor(name: String, aliases: Set<String>, description: String, subCommandName: String?, permissions: Set<String>, arguments: List<ParsableArgument<*>>, optionalArguments: List<ParsableArgument<*>>, mcCommand: Command?)

Types

Link copied to clipboard
class Builder(plugin: ColosseumPlugin, name: String)

Builder class for constructing CommandData instances.

Properties

Link copied to clipboard

The set of aliases for the command.

Link copied to clipboard

The list of required arguments for the command.

Link copied to clipboard

The description of the command.

Link copied to clipboard
val mcCommand: Command?
Link copied to clipboard

The name of the command.

Link copied to clipboard

The list of optional arguments for the command.

Link copied to clipboard

The set of permissions required to execute the command.

Link copied to clipboard

The name of the sub-command, if any.