From f969e2e52b5c3474cdc9b75208d5048d33f67b22 Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 9 Mar 2018 16:43:29 +0000 Subject: [PATCH] Strip color when sending messages to the fallback logger --- .../luckperms/bukkit/compat/NullSafeConsoleCommandSender.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/compat/NullSafeConsoleCommandSender.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/compat/NullSafeConsoleCommandSender.java index fff56474..fed518aa 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/compat/NullSafeConsoleCommandSender.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/compat/NullSafeConsoleCommandSender.java @@ -25,6 +25,7 @@ package me.lucko.luckperms.bukkit.compat; +import org.bukkit.ChatColor; import org.bukkit.Server; import org.bukkit.command.ConsoleCommandSender; import org.bukkit.conversations.Conversation; @@ -68,7 +69,7 @@ public class NullSafeConsoleCommandSender implements ConsoleCommandSender { if (console.isPresent()) { console.get().sendMessage(message); } else { - this.server.getLogger().info(message); + this.server.getLogger().info(ChatColor.stripColor(message)); } }