From 527ba723809b72cf7f4e22b29849c170965ff5c3 Mon Sep 17 00:00:00 2001 From: Xujiayao Date: Sat, 10 Feb 2024 23:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=B8=E6=88=8F=E5=86=85?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=20/mcdc=20stats=20=E4=BC=9A=E6=98=BE?= =?UTF-8?q?=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())); } }