MCPcopy Create free account
hub / github.com/esengine/esengine / isPluginInstalled

Method isPluginInstalled

packages/core/src/Core.ts:633–639  ·  view source on GitHub ↗

* @zh 检查插件是否已安装 * @en Check if plugin is installed * * @param name - @zh 插件名称 @en Plugin name * @returns @zh 是否已安装 @en Whether installed * * @example * ```typescript * if (Core.isPluginInstalled('my-plugin')) { * console.log('Plugin is installed');

(name: string)

Source from the content-addressed store, hash-verified

631 * ```
632 */
633 public static isPluginInstalled(name: string): boolean {
634 if (!this._instance) {
635 return false;
636 }
637
638 return this._instance._pluginManager.isInstalled(name);
639 }
640
641 /**
642 * @zh 初始化核心系统

Callers 2

Calls 1

isInstalledMethod · 0.80

Tested by

no test coverage detected