Allow configuration of commands

This commit is contained in:
Draycia committed 2022-01-01 19:11:11 -08:00
1 parent 520630433b
commit f20b1ef434
23 files changed
+754 -197

No files matched your search

@@ -99,7 +99,9 @@ public final class CarbonChatFabric implements ModInitializer, CarbonChat {
ListenerUtils.registerCommonListeners(this.injector);
// Commands
CloudUtils.registerCommands(this.injector);
CloudUtils.loadCommands(this.injector);
final var commandSettings = CloudUtils.loadCommandSettings(this.injector);
CloudUtils.registerCommands(commandSettings);
// Load channels
((CarbonChannelRegistry) this.channelRegistry()).loadConfigChannels();