Should *actually* work now
This commit is contained in:
parent
f36e77ed31
commit
5f180f0dbf
|
@ -62,6 +62,6 @@ abstract class IMatterLink {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun registerBridgeCommands() {
|
fun registerBridgeCommands() {
|
||||||
BridgeCommandRegistry.registerAll(HelpCommand,PlayerListCommand,UptimeCommand)
|
BridgeCommandRegistry.reloadCommands()
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
package matterlink.command
|
package matterlink.command
|
||||||
|
|
||||||
import matterlink.bridge.MessageHandler
|
import matterlink.bridge.MessageHandler
|
||||||
|
import matterlink.bridge.command.BridgeCommandRegistry
|
||||||
import matterlink.config.cfg
|
import matterlink.config.cfg
|
||||||
import matterlink.instance
|
import matterlink.instance
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ object CommandCore {
|
||||||
"reload" -> {
|
"reload" -> {
|
||||||
if (MessageHandler.connected) instance.disconnect()
|
if (MessageHandler.connected) instance.disconnect()
|
||||||
cfg = cfg!!.load()
|
cfg = cfg!!.load()
|
||||||
|
BridgeCommandRegistry.reloadCommands()
|
||||||
if (!MessageHandler.connected) instance.connect()
|
if (!MessageHandler.connected) instance.connect()
|
||||||
"Bridge config reloaded!"
|
"Bridge config reloaded!"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue