Rename chat key to message in localization files

This commit is contained in:
Xujiayao 2026-03-19 11:53:58 +08:00
parent a9b77f7052
commit b76ea72e14
3 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ public class DiscordMessageParser {
boolean isMultiLine = truncatedRaw.contains("\n");
// Build segments from common.chat template
JsonNode chatNode = I18nManager.getCustomMessages().path("common").path("chat");
JsonNode chatNode = I18nManager.getCustomMessages().path("common").path("message");
if (chatNode.isArray()) {
for (JsonNode segNode : chatNode) {
String text = segNode.path("text").asText("");

View file

@ -16,7 +16,7 @@ version: ${mod_version}
# ==================================================
common:
chat:
message:
- text: "[{server}] "
bold: true
color: "{server_color}"

View file

@ -16,7 +16,7 @@ version: ${mod_version}
# ==================================================
common:
chat:
message:
- text: "[{server}] "
bold: true
color: "{server_color}"