diff --git a/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java b/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java index e168108..271d789 100644 --- a/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java +++ b/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java @@ -66,7 +66,11 @@ public void format(LogEvent event, StringBuilder toAppendTo) { } else { ConfigManager configManager = plugin.getConfigManager(); if (configManager != null && configManager.resetConsoleColor) { - toAppendTo.append("\u001b[0m"); + for (int i = toAppendTo.length() - 1; i >= 0; i--) { + if (toAppendTo.charAt(i) == '\n') { + toAppendTo.insert(i, "\u001b[0m"); + } + } } } }