Commit ead002d2 authored by jiahua.liu's avatar jiahua.liu

plugin supporting

parent d38fa039
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment