McCommandManager

abstract class McCommandManager<T : McCommand>

Manages universal commands for multiple server implementations.

This class managing commands that are independent of the server implementation (e.g., Paper, Forge, Fabric). These universal commands work across different server types.

Parameters

T

The type of commands managed by this manager.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Retrieves a read-only map of registered commands.

Functions

Link copied to clipboard

Clears all registered commands and resets the registration state.

Link copied to clipboard
abstract fun getCommandSource(source: Any): McCommandSource

Gets a command source by server-specific instance.

Link copied to clipboard
fun register(name: String, command: T, vararg aliases: String)

Registers a command with its name and optional aliases.