Strip color when sending messages to the fallback logger

This commit is contained in:
Luck 2018-03-09 16:43:29 +00:00
parent cde2306079
commit f969e2e52b
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -25,6 +25,7 @@
package me.lucko.luckperms.bukkit.compat; package me.lucko.luckperms.bukkit.compat;
import org.bukkit.ChatColor;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.command.ConsoleCommandSender; import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.conversations.Conversation; import org.bukkit.conversations.Conversation;
@ -68,7 +69,7 @@ public class NullSafeConsoleCommandSender implements ConsoleCommandSender {
if (console.isPresent()) { if (console.isPresent()) {
console.get().sendMessage(message); console.get().sendMessage(message);
} else { } else {
this.server.getLogger().info(message); this.server.getLogger().info(ChatColor.stripColor(message));
} }
} }