From ecc149875bd1d8204bc6cf43b5fedd4a2e81af43 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sun, 2 Oct 2016 22:50:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=89=8D=E7=BC=80=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/bukkit/Log.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/pw/yumc/YumCore/bukkit/Log.java b/src/main/java/pw/yumc/YumCore/bukkit/Log.java index d0f7c09..f95657b 100644 --- a/src/main/java/pw/yumc/YumCore/bukkit/Log.java +++ b/src/main/java/pw/yumc/YumCore/bukkit/Log.java @@ -6,6 +6,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.bukkit.Bukkit; +import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; /** @@ -245,7 +246,7 @@ public class Log { * 插件前缀 */ public static void setPrefix(final String prefix) { - Log.prefix = prefix; + Log.prefix = ChatColor.translateAlternateColorCodes('&', prefix); } /**