diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java index 2911d74..1f15415 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java @@ -65,6 +65,12 @@ public class LoggerPlugin extends ChatPlugin.Listener { LoggerUtilities.info(bot, message); } + public void error (String message) { + if (!logToConsole) return; + + LoggerUtilities.info(bot, message); + } + public void custom (Component prefix, Component message) { if (!logToConsole) return; diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/LoggerUtilities.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/LoggerUtilities.java index ecdc246..e972e15 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/LoggerUtilities.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/LoggerUtilities.java @@ -70,7 +70,7 @@ public class LoggerUtilities { final String component = prefix(bot, Component.text("Error").color(NamedTextColor.RED), message); if (bot != null) bot.console.reader.printAbove(component); - else System.out.println(component); + else System.err.println(component); } public static void custom (Component prefix, Component message) { custom(null, prefix, message); }