mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 22:01:00 +08:00
plugin supporting
This commit is contained in:
parent
d38fa039ef
commit
ead002d27f
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user