From 7a49606850f2020a5e35106056a5abe98d034c6c Mon Sep 17 00:00:00 2001 From: GeekFrog Date: Sun, 16 Jul 2017 19:32:41 +0800 Subject: [PATCH] fix bug --- src/main/gg/frog/mc/permissionstime/utils/StrUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/gg/frog/mc/permissionstime/utils/StrUtil.java b/src/main/gg/frog/mc/permissionstime/utils/StrUtil.java index bda4eec..082975f 100644 --- a/src/main/gg/frog/mc/permissionstime/utils/StrUtil.java +++ b/src/main/gg/frog/mc/permissionstime/utils/StrUtil.java @@ -10,7 +10,7 @@ public class StrUtil { private static String dfs = "yyyy/MM/dd HH:mm:ss"; public static String messageFormat(String src, Object... args) { - return MessageFormat.format(src, args).replace("&", "§"); + return MessageFormat.format(src, args).replace("&", "§").replace("\\n", "\n"); } public static String timestampToString(long time) {