加载的时候,不需要查找名称。需要通过 代码进行加载

This commit is contained in:
liuwei
2025-03-20 12:07:12 +08:00
parent ef1e6d03bc
commit ce837d241a

View File

@@ -133,7 +133,8 @@ class PluginManagerPlugin(MessagePluginInterface):
"禁用": lambda w, s, r: self._operate_plugin(plugin_name, w, s, r, self._disable_plugin),
"重载": lambda w, s, r: self._operate_plugin(plugin_name, w, s, r, self._reload_plugin),
"卸载": lambda w, s, r: self._operate_plugin(plugin_name, w, s, r, self._unload_plugin),
"加载": self._load_plugin(plugin_name, wcf, sender, roomid),
# 修改这一行,使用 lambda 函数而不是直接调用
"加载": lambda w, s, r: self._load_plugin(plugin_name, w, s, r),
"信息": lambda w, s, r: self._operate_plugin(plugin_name, w, s, r, self._plugin_info)
}