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 9696badf..4a11a247 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,7 +26,14 @@ public class TrustedPlugin extends PlayersPlugin.Listener { for (Bot bot : bot.bots()) { if (!bot.loggedIn()) continue; - bot.logger().custom(Component.text("Trusted Broadcast").color(NamedTextColor.AQUA), message); + final Component component = Component.translatable( + "[%s] [%s] %s", + Component.text("ChomeNS Bot").color(NamedTextColor.YELLOW), + Component.text(this.bot.options().serverName()).color(NamedTextColor.GRAY), + message.color(NamedTextColor.WHITE) + ).color(NamedTextColor.DARK_GRAY); + + bot.logger().custom(Component.text("Trusted Broadcast").color(NamedTextColor.AQUA), component); for (String player : list) { final MutablePlayerListEntry entry = bot.players().getEntry(player); @@ -35,13 +42,6 @@ public class TrustedPlugin extends PlayersPlugin.Listener { if (entry.profile().getId() == exceptTarget) continue; - final Component component = Component.translatable( - "[%s] [%s] %s", - Component.text("ChomeNS Bot").color(NamedTextColor.YELLOW), - Component.text(this.bot.options().serverName()).color(NamedTextColor.GRAY), - message.color(NamedTextColor.WHITE) - ).color(NamedTextColor.DARK_GRAY); - bot.chat().tellraw(component, player); } }