Skip to content

Commit

Permalink
fix: 🐛 fix plainServerFrom in getMinecraftSwitchMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Dec 19, 2022
1 parent f07a648 commit ad4dd3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Kook 机器人 token。

### kook.message

Kook 消息的格式化文本占位符与上文同理。
Kook 消息的格式化文本占位符与上文同理,所有的服务器名称会自动转为 plain 格式,您无需使用 plain 格式的占位符

#### chat

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/zhanganzhi/chathub/core/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public String getMinecraftSwitchMessage(String name, String serverFrom, String s
.getString("minecraft.message.switch")
.replace("{name}", name)
.replace("{serverFrom}", getServername(serverFrom))
.replace("{plainServerTo}", getPlainServername(serverFrom))
.replace("{plainServerFrom}", getPlainServername(serverFrom))
.replace("{serverTo}", getServername(serverTo))
.replace("{plainServerTo}", getPlainServername(serverTo));
}
Expand Down

0 comments on commit ad4dd3e

Please sign in to comment.