diff --git a/common/src/main/kotlin/me/regadpole/plumbot/config/ConfigLoader.kt b/common/src/main/kotlin/me/regadpole/plumbot/config/ConfigLoader.kt index 78f7559..5f105d1 100644 --- a/common/src/main/kotlin/me/regadpole/plumbot/config/ConfigLoader.kt +++ b/common/src/main/kotlin/me/regadpole/plumbot/config/ConfigLoader.kt @@ -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) { @@ -58,10 +59,14 @@ class ConfigLoader(config: Configuration, commandsConfig: Configuration, returns class Commands(config: Configuration) { val ver = config.getString("ver") + val adminCommand = config.getMap("admin") + val userCommand = config.getMap("user") } class Returns(config: Configuration) { val ver = config.getString("ver") + val adminReturn = config.getMap("admin") + val userReturn = config.getMap("user") } fun getConfig(): Config { diff --git a/src/main/resources/returns.yml b/src/main/resources/returns.yml index 56c87de..a0f3b26 100644 --- a/src/main/resources/returns.yml +++ b/src/main/resources/returns.yml @@ -1,4 +1,8 @@ #自定义回复配置 ver: '2.0.0' -自定义回复的关键词: 自定义回复的内容 +admin: + 自定义回复的关键词: 自定义回复的内容 + +user: + 自定义回复的关键词: 自定义回复的内容