Skip to content

Commit

Permalink
(unstable) fix returns.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RegadPoleCN committed Aug 18, 2024
1 parent 9bf5aa0 commit 29c9991
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package me.regadpole.plumbot.config

import taboolib.common.io.newFile
import taboolib.module.configuration.Configuration
import taboolib.module.configuration.util.getMap
import taboolib.module.database.getHost

class ConfigLoader(config: Configuration, commandsConfig: Configuration, returnsConfig: Configuration) {
Expand Down Expand Up @@ -58,10 +59,14 @@ class ConfigLoader(config: Configuration, commandsConfig: Configuration, returns

class Commands(config: Configuration) {
val ver = config.getString("ver")
val adminCommand = config.getMap<String, String>("admin")
val userCommand = config.getMap<String, String>("user")
}

class Returns(config: Configuration) {
val ver = config.getString("ver")
val adminReturn = config.getMap<String, String>("admin")
val userReturn = config.getMap<String, String>("user")
}

fun getConfig(): Config {
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/returns.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#自定义回复配置
ver: '2.0.0'

自定义回复的关键词: 自定义回复的内容
admin:
自定义回复的关键词: 自定义回复的内容

user:
自定义回复的关键词: 自定义回复的内容

0 comments on commit 29c9991

Please sign in to comment.