fix: builtins config use ReadOnlyPluginConfig (#375)

This commit is contained in:
cssxsh 2021-06-26 20:26:37 +08:00 committed by GitHub
parent d534bbcb48
commit 3628d534d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -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("""
指令前缀, 默认 "/"
""")

View File

@ -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
""")