mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:50:08 +08:00
fix: builtins config use ReadOnlyPluginConfig (#375)
This commit is contained in:
parent
d534bbcb48
commit
3628d534d4
@ -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("""
|
||||
指令前缀, 默认 "/"
|
||||
""")
|
||||
|
@ -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
|
||||
""")
|
||||
|
Loading…
Reference in New Issue
Block a user