From 0ebe200774a6a6514c72eb84a9a671aeb339dd71 Mon Sep 17 00:00:00 2001 From: "jiahua.liu" Date: Sun, 8 Mar 2020 23:01:52 +0800 Subject: [PATCH] pure format + console plugin auto disable --- .../kotlin/net/mamoe/mirai/console/plugins/PluginManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugins/PluginManager.kt b/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugins/PluginManager.kt index 1135f5579..6ec9c4d86 100644 --- a/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugins/PluginManager.kt +++ b/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugins/PluginManager.kt @@ -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()