plugin supporting

This commit is contained in:
jiahua.liu 2020-01-18 16:59:15 +08:00
parent d38fa039ef
commit ead002d27f

View File

@ -96,15 +96,13 @@ object PluginManager{
File(it).mkdirs()
}
private val logger = DefaultLogger("Plugin Manager")
private val logger = DefaultLogger("Mirai Plugin Manager")
//已完成加载的
private val nameToPluginBaseMap: MutableMap<String, PluginBase> = mutableMapOf()
/**
* 尝试加载全部插件
*/
@ -210,11 +208,11 @@ object PluginManager{
logger.error("failed to load plugin " + description.pluginName + " , Main class not found under " + description.pluginBasePath)
}
}
}
pluginsFound.values.forEach{ loadPlugin(it) }
pluginsFound.values.forEach {
loadPlugin(it)
}
}