From 5f180f0dbffc14e1f1ae6d808ec9a5a20e3a6962 Mon Sep 17 00:00:00 2001 From: DaMachinator Date: Thu, 15 Feb 2018 11:45:47 -0500 Subject: [PATCH] Should *actually* work now --- core/src/main/kotlin/matterlink/IMatterLink.kt | 2 +- core/src/main/kotlin/matterlink/command/CommandCore.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/matterlink/IMatterLink.kt b/core/src/main/kotlin/matterlink/IMatterLink.kt index f39c097..98e3ac2 100644 --- a/core/src/main/kotlin/matterlink/IMatterLink.kt +++ b/core/src/main/kotlin/matterlink/IMatterLink.kt @@ -62,6 +62,6 @@ abstract class IMatterLink { } fun registerBridgeCommands() { - BridgeCommandRegistry.registerAll(HelpCommand,PlayerListCommand,UptimeCommand) + BridgeCommandRegistry.reloadCommands() } } \ No newline at end of file diff --git a/core/src/main/kotlin/matterlink/command/CommandCore.kt b/core/src/main/kotlin/matterlink/command/CommandCore.kt index e4e1406..8aec64d 100644 --- a/core/src/main/kotlin/matterlink/command/CommandCore.kt +++ b/core/src/main/kotlin/matterlink/command/CommandCore.kt @@ -1,6 +1,7 @@ package matterlink.command import matterlink.bridge.MessageHandler +import matterlink.bridge.command.BridgeCommandRegistry import matterlink.config.cfg import matterlink.instance @@ -24,6 +25,7 @@ object CommandCore { "reload" -> { if (MessageHandler.connected) instance.disconnect() cfg = cfg!!.load() + BridgeCommandRegistry.reloadCommands() if (!MessageHandler.connected) instance.connect() "Bridge config reloaded!" }