Skip to content

Commit

Permalink
perf: 优化配置项获取
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Aug 27, 2024
1 parent 1cc3688 commit 5dcfd30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/snw/kookbc/impl/KBCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ protected void registerInternal() {
private void registerCommands(List<Class<?>> commands) {
LiteKookFactory.builder(getInternalPlugin())
.settings((k) -> {
if (!getConfig().contains("internal-commands-reply-result-type")) {
return k;
}
try {
ResultTypes resultTypes = ResultTypes.valueOf(getConfig().getString("internal-commands-reply-result-type"));
k.defaultResultType(resultTypes);
Expand Down

0 comments on commit 5dcfd30

Please sign in to comment.