From 527ba723809b72cf7f4e22b29849c170965ff5c3 Mon Sep 17 00:00:00 2001 From: Xujiayao Date: Sat, 10 Feb 2024 23:28:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E5=86=85=E6=9F=A5=E8=AF=A2=20/mcdc=20stats=20=E4=BC=9A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20CR=20=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xujiayao/mcdiscordchat/utils/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/xujiayao/mcdiscordchat/utils/Utils.java b/src/main/java/com/xujiayao/mcdiscordchat/utils/Utils.java index deaffe06..b5856259 100644 --- a/src/main/java/com/xujiayao/mcdiscordchat/utils/Utils.java +++ b/src/main/java/com/xujiayao/mcdiscordchat/utils/Utils.java @@ -479,7 +479,7 @@ public static String getStatsCommandMessage(String type, String name) { sortedlist.sort((c1, c2) -> c2.getValue().compareTo(c1.getValue())); for (Map.Entry entry : sortedlist) { - message.append(String.format("%n%-8d %-8s", entry.getValue(), entry.getKey())); + message.append(String.format("\n%-8d %-8s", entry.getValue(), entry.getKey())); } } From 99c5e3f4791a71380715dfe3fa4f499674560561 Mon Sep 17 00:00:00 2001 From: Xujiayao Date: Sun, 11 Feb 2024 00:16:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=8F=90=E9=86=92?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=EF=BC=88=E5=9B=A0=E6=AD=BB=E4=BA=A1=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=BB=8D=E5=8F=AF=E4=BB=A5=E7=BF=BB=E8=AF=91=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xujiayao/mcdiscordchat/utils/Translations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/xujiayao/mcdiscordchat/utils/Translations.java b/src/main/java/com/xujiayao/mcdiscordchat/utils/Translations.java index 1c9f1275..ef20950d 100644 --- a/src/main/java/com/xujiayao/mcdiscordchat/utils/Translations.java +++ b/src/main/java/com/xujiayao/mcdiscordchat/utils/Translations.java @@ -42,7 +42,7 @@ public static void init() { if (optional.isEmpty()) { LOGGER.warn("-----------------------------------------"); - LOGGER.warn("MCDC cannot find translations for \"" + CONFIG.generic.language + "\" and uses \"en_us\" by default!"); + LOGGER.warn("MCDC cannot find its translations for \"" + CONFIG.generic.language + "\" and uses \"en_us\" by default!"); LOGGER.warn(""); LOGGER.warn("You are welcome to contribute translations!"); LOGGER.warn("Contributing: https://github.com/Xujiayao/MC-Discord-Chat#Contributing");