From 16242c9a93b902318fd2f67880cb8340b136fdd6 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 27 Aug 2020 22:30:39 +0800 Subject: [PATCH] Fix #133 --- .../kotlin/net/mamoe/mirai/console/plugin/PluginLoader.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/PluginLoader.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/PluginLoader.kt index a29bacb98..3b09bca81 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/PluginLoader.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/plugin/PluginLoader.kt @@ -149,10 +149,13 @@ public interface FilePluginLoader

: PluginLoa * @see FilePluginLoader */ public abstract class AbstractFilePluginLoader

( + /** + * 所支持的插件文件后缀, 含 '.'. 如 [JarPluginLoader] 为 ".jar" + */ public override val fileSuffix: String ) : FilePluginLoader { private fun pluginsFilesSequence(): Sequence = - PluginManager.pluginsPath.toFile().walk() + PluginManager.pluginsFolder.listFiles().orEmpty().asSequence() .filter { it.isFile && it.name.endsWith(fileSuffix, ignoreCase = true) } /**