CommandManager

CommandManager is responsible for managing commands in the Bukkit environment. It allows for the registration of command parameters and the building of command lamps. This class is designed to be used within the SystemCore plugin.

Usage:

CommandManager().apply {
parameter(
KitName::class.java to KitNameParameter(),
OnlinePlayer::class.java to OnlinePlayerParameter()
)
build()
command(KitCommand())
command(AnotherCommand())
}

** Don´t forget to put this on build.gradle.kts**

tasks.withType<KotlinJvmCompile> {
compilerOptions {
javaParameters = true
}
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build()
Link copied to clipboard
fun command(vararg commands: Any)
Link copied to clipboard
fun parameter(vararg types: Pair<Class<*>, ParameterType<BukkitCommandActor, *>>)

Registers command parameters for the Lamp. This method allows you to define custom parameter types that can be used in commands.