mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
pure format
+ console plugin auto disable
This commit is contained in:
parent
4903c87034
commit
0ebe200774
@ -153,6 +153,7 @@ object PluginManager {
|
||||
|
||||
//real load
|
||||
logger.info("loading plugin " + description.name)
|
||||
lastPluginName = description.name
|
||||
|
||||
try {
|
||||
val pluginClass = try {
|
||||
@ -170,7 +171,6 @@ object PluginManager {
|
||||
.loadClass("${description.basePath}Kt")
|
||||
}
|
||||
return try {
|
||||
lastPluginName = description.name
|
||||
val subClass = pluginClass.asSubclass(PluginBase::class.java)
|
||||
val plugin: PluginBase =
|
||||
subClass.kotlin.objectInstance ?: subClass.getDeclaredConstructor().newInstance()
|
||||
|
Loading…
Reference in New Issue
Block a user