feat: modify stage order
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
38469741fd
commit
5f0075272c
@ -64,20 +64,20 @@ export class PluginManagerImpl implements plugin.PluginManager {
|
|||||||
enable(...args: any[]): void {
|
enable(...args: any[]): void {
|
||||||
this.checkAndGet(args[0]).forEach((plugin: interfaces.Plugin) => {
|
this.checkAndGet(args[0]).forEach((plugin: interfaces.Plugin) => {
|
||||||
this.logStage(plugin, i18n.translate("ms.plugin.manager.stage.enable"))
|
this.logStage(plugin, i18n.translate("ms.plugin.manager.stage.enable"))
|
||||||
this.runCatch(plugin, 'enable')
|
|
||||||
this.runCatch(plugin, `${this.serverType}enable`)
|
|
||||||
this.registryCommand(plugin)
|
this.registryCommand(plugin)
|
||||||
this.registryListener(plugin)
|
this.registryListener(plugin)
|
||||||
|
this.runCatch(plugin, 'enable')
|
||||||
|
this.runCatch(plugin, `${this.serverType}enable`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
disable(...args: any[]): void {
|
disable(...args: any[]): void {
|
||||||
this.checkAndGet(args[0]).forEach((plugin: interfaces.Plugin) => {
|
this.checkAndGet(args[0]).forEach((plugin: interfaces.Plugin) => {
|
||||||
this.logStage(plugin, i18n.translate("ms.plugin.manager.stage.disable"))
|
this.logStage(plugin, i18n.translate("ms.plugin.manager.stage.disable"))
|
||||||
this.runCatch(plugin, 'disable')
|
|
||||||
this.runCatch(plugin, `${this.serverType}disable`)
|
|
||||||
this.unregistryCommand(plugin)
|
this.unregistryCommand(plugin)
|
||||||
this.unregistryListener(plugin)
|
this.unregistryListener(plugin)
|
||||||
|
this.runCatch(plugin, 'disable')
|
||||||
|
this.runCatch(plugin, `${this.serverType}disable`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user