diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 61bfe66..567676d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,11 +4,10 @@ - @@ -483,7 +481,8 @@ - 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 c8c2c05..9b36835 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 @@ -81,6 +81,12 @@ public class LoggerPlugin extends ChatPlugin.ChatListener { bot.console().reader().printAbove(message); } + public void custom (Component prefix, Component _message) { + final String message = prefix(prefix, ComponentUtilities.stringifyAnsi(_message)); + + bot.console().reader().printAbove(message); + } + @Override public void systemMessageReceived(Component component) { final String ansiMessage = ComponentUtilities.stringifyAnsi(component); diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TrustedPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TrustedPlugin.java index 7cf3eef..498d458 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TrustedPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TrustedPlugin.java @@ -26,6 +26,8 @@ public class TrustedPlugin extends PlayersPlugin.PlayerListener { for (Bot bot : bot.allBots()) { if (!bot.loggedIn()) continue; + bot.logger().custom(Component.text("Trusted Broadcast").color(NamedTextColor.AQUA), message); + for (String player : list) { final MutablePlayerListEntry entry = bot.players().getEntry(player);