From c1c84575f35c02cb87b2bf9158792209c8db2558 Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Sat, 22 Aug 2020 14:35:00 +0800 Subject: [PATCH] Make CommandOwner open --- .../kotlin/net/mamoe/mirai/console/command/CommandManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt index 5d313721d..5054ad6d1 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt @@ -179,12 +179,12 @@ public interface CommandManager { * 指令的所有者. * @see PluginCommandOwner */ -public sealed class CommandOwner +public open class CommandOwner /** * 插件指令所有者. 插件只能通过 [PluginCommandOwner] 管理指令. */ -public abstract class PluginCommandOwner( +public class PluginCommandOwner( public val plugin: Plugin ) : CommandOwner() { init {