MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / enableAllPlugins

Method enableAllPlugins

Adapters/Plugin.py:205–213  ·  view source on GitHub ↗

启用所有插件

(self)

Source from the content-addressed store, hash-verified

203 raise Warning(f"加载插件错误: {e}")
204
205 def enableAllPlugins(self):
206 """启用所有插件"""
207 for pluginName in self.loadedPlugin.keys():
208 plugin: Plugin = self.loadedPlugin.get(pluginName)
209 if plugin.ENABLE is not None:
210 try:
211 self.enablePlugin(pluginName)
212 except Exception:
213 continue
214
215 def disableAllPlugins(self):
216 """禁用所有插件"""

Callers

nothing calls this directly

Calls 2

enablePluginMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected