Should *actually* work now

This commit is contained in:
DaMachinator 2018-02-15 11:45:47 -05:00
parent f36e77ed31
commit 5f180f0dbf
2 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,6 @@ abstract class IMatterLink {
}
fun registerBridgeCommands() {
BridgeCommandRegistry.registerAll(HelpCommand,PlayerListCommand,UptimeCommand)
BridgeCommandRegistry.reloadCommands()
}
}

View File

@ -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!"
}