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) } } } } }