Command Manager
class 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())
}
Content copied to clipboard
** Don´t forget to put this on build.gradle.kts**
tasks.withType<KotlinJvmCompile> {
compilerOptions {
javaParameters = true
}
}
Content copied to clipboard