Command Builder
Builder class used to define and configure commands for the plugin.
This class allows you to define various aspects of a command such as its description, permission, usage, cooldowns, subcommands, and more. It also supports both synchronous and asynchronous execution of command logic, as well as tab completion and validation.
Parameters
The name of the command being built.
Functions
Sets a cooldown for the command.
Disables suggestions for tab completion.
Generates help text for the command, including subcommands.
Specifies the block of code to be executed when the command is run.
Specifies an asynchronous block of code to be executed when the command is run.
Defines a subcommand under the current command.
Specifies the suggestions for tab completion.
Suggests values from an enum for tab completion.
Conditionally suggests tab completion options based on a condition.
Suggests the names of all online players for tab completion.
Defines validation logic to be executed before the command is run.