mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-12-11 09:54:14 -08:00
Merge pull request #20 from GabeeCoding/master
do not load plugins if none exist
This commit is contained in:
commit
99b8d4ee3a
|
@ -59,13 +59,14 @@ export class PluginManager extends EventEmitter {
|
||||||
}
|
}
|
||||||
pluginsString = pluginsString.substring(0, pluginsString.length - 1);
|
pluginsString = pluginsString.substring(0, pluginsString.length - 1);
|
||||||
this._logger.info(`Found ${pluginMeta.size} plugin(s): ${pluginsString}`);
|
this._logger.info(`Found ${pluginMeta.size} plugin(s): ${pluginsString}`);
|
||||||
|
if(pluginMeta.size !== 0){
|
||||||
this._logger.info(`Loading ${pluginMeta.size} plugin(s)...`);
|
this._logger.info(`Loading ${pluginMeta.size} plugin(s)...`);
|
||||||
const successLoadCount = await this._loadPlugins(
|
const successLoadCount = await this._loadPlugins(
|
||||||
pluginMeta,
|
pluginMeta,
|
||||||
this._getLoadOrder(pluginMeta)
|
this._getLoadOrder(pluginMeta)
|
||||||
);
|
);
|
||||||
this._logger.info(`Successfully loaded ${successLoadCount} plugin(s).`);
|
this._logger.info(`Successfully loaded ${successLoadCount} plugin(s).`);
|
||||||
|
}
|
||||||
this.emit("pluginsFinishLoading", this);
|
this.emit("pluginsFinishLoading", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user