mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Strip color when sending messages to the fallback logger
This commit is contained in:
parent
cde2306079
commit
f969e2e52b
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user