Builder

class Builder(plugin: ColosseumPlugin, name: String)

Builder class for constructing CommandData instances.

Parameters

plugin

The JavaPlugin instance.

name

The name of the command.

Throws

if no command with the specified name is found in plugin.yml.

Constructors

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

Properties

Link copied to clipboard

Properties for building CommandData.

Link copied to clipboard

The list of required arguments for the command.

Link copied to clipboard
val command: @Nullable PluginCommand?

Initialize the builder by retrieving command metadata from plugin.yml.

Link copied to clipboard

The description 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 for nested commands usage, if any.

Functions

Link copied to clipboard

Builds the CommandData instance.