Files
TCOWW/src/main/kotlin/fr/azur/tcoww/TcowwBootstrap.kt

27 lines
974 B
Kotlin
Raw Normal View History

2025-06-28 14:53:52 +02:00
package fr.azur.tcoww
import fr.azur.tcoww.commands.Exclude
2025-06-28 14:53:52 +02:00
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
2025-11-30 17:22:48 +01:00
object TcowwBootstrap : PluginBootstrap {
2025-06-28 14:53:52 +02:00
override fun bootstrap(context: BootstrapContext) {
2025-11-30 17:22:48 +01:00
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)
}
}
2025-06-28 14:53:52 +02:00
}
}
2025-11-30 17:22:48 +01:00
}