diff --git a/backend/mirai-console/src/internal/command/CommnadConfig.kt b/backend/mirai-console/src/internal/command/CommnadConfig.kt index 6e0a571d6..75ea16b03 100644 --- a/backend/mirai-console/src/internal/command/CommnadConfig.kt +++ b/backend/mirai-console/src/internal/command/CommnadConfig.kt @@ -9,7 +9,7 @@ package net.mamoe.mirai.console.internal.command -import net.mamoe.mirai.console.data.AutoSavePluginConfig +import net.mamoe.mirai.console.data.ReadOnlyPluginConfig import net.mamoe.mirai.console.data.ValueDescription import net.mamoe.mirai.console.data.ValueName import net.mamoe.mirai.console.data.value @@ -17,11 +17,7 @@ import net.mamoe.mirai.console.data.value @ValueDescription(""" 内置指令系统配置 """) -internal object CommandConfig : AutoSavePluginConfig("Command") { - override fun shouldPerformAutoSaveWheneverChanged(): Boolean { - return false - } - +internal object CommandConfig : ReadOnlyPluginConfig("Command") { @ValueDescription(""" 指令前缀, 默认 "/" """) diff --git a/backend/mirai-console/src/internal/data/builtins/LoggerConfig.kt b/backend/mirai-console/src/internal/data/builtins/LoggerConfig.kt index 447051689..53e0689b4 100644 --- a/backend/mirai-console/src/internal/data/builtins/LoggerConfig.kt +++ b/backend/mirai-console/src/internal/data/builtins/LoggerConfig.kt @@ -9,12 +9,12 @@ package net.mamoe.mirai.console.internal.data.builtins -import net.mamoe.mirai.console.data.AutoSavePluginConfig +import net.mamoe.mirai.console.data.ReadOnlyPluginConfig import net.mamoe.mirai.console.data.ValueDescription import net.mamoe.mirai.console.data.value import net.mamoe.mirai.console.logging.AbstractLoggerController -internal object LoggerConfig : AutoSavePluginConfig("Logger") { +internal object LoggerConfig : ReadOnlyPluginConfig("Logger") { @ValueDescription(""" 日志输出等级 可选值: ALL, VERBOSE, DEBUG, INFO, WARNING, ERROR, NONE """)