Should *actually* work now
This commit is contained in:
parent
f36e77ed31
commit
5f180f0dbf
|
@ -62,6 +62,6 @@ abstract class IMatterLink {
|
|||
}
|
||||
|
||||
fun registerBridgeCommands() {
|
||||
BridgeCommandRegistry.registerAll(HelpCommand,PlayerListCommand,UptimeCommand)
|
||||
BridgeCommandRegistry.reloadCommands()
|
||||
}
|
||||
}
|
|
@ -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!"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue