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

@@ -111,7 +111,10 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
ListenerUtils.registerCommonListeners(this.injector);
// Commands
CloudUtils.registerCommands(this.injector);
// This is a bit awkward looking
CloudUtils.loadCommands(this.injector);
final var commandSettings = CloudUtils.loadCommandSettings(this.injector);
CloudUtils.registerCommands(commandSettings);
// Player data saving
final long saveDelay = 5 * 60 * 20;