feat: optimize plugin event registry
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@ -20,7 +20,7 @@ export class PluginEventManager {
|
||||
// ignore space listener
|
||||
if (!this.ServerChecker.check(event.servers)) { continue }
|
||||
// here must bind this to pluginInstance
|
||||
this.EventManager.listen(pluginInstance, event.name, pluginInstance[event.executor].bind(pluginInstance))
|
||||
this.EventManager.listen(pluginInstance, event.name, pluginInstance[event.executor].bind(pluginInstance), event.priority, event.ignoreCancel)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user