Files
TCOWW/src/main/kotlin/fr/azur/tcoww/TcowwBootstrap.kt
2025-11-30 17:22:48 +01:00

27 lines
974 B
Kotlin

package fr.azur.tcoww
import fr.azur.tcoww.commands.Exclude
import fr.azur.tcoww.commands.GameCommand
import fr.azur.tcoww.commands.ReloadCommands
import fr.azur.tcoww.commands.Tools
import fr.azur.tcoww.commands.Vote
import io.papermc.paper.plugin.bootstrap.BootstrapContext
import io.papermc.paper.plugin.bootstrap.PluginBootstrap
import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents
object TcowwBootstrap : PluginBootstrap {
override fun bootstrap(context: BootstrapContext) {
context.lifecycleManager.apply {
registerEventHandler(LifecycleEvents.COMMANDS) { commands ->
commands.registrar().apply {
register(Tools.root)
register(GameCommand.root)
commands.registrar().register(Vote.root)
register(ReloadCommands.root)
commands.registrar().register(Exclude.root)
}
}
}
}
}