diff --git a/src/main/java/com/github/quiltservertools/blockbot/Listeners.java b/src/main/java/com/github/quiltservertools/blockbot/Listeners.java index c66c44d..5456576 100644 --- a/src/main/java/com/github/quiltservertools/blockbot/Listeners.java +++ b/src/main/java/com/github/quiltservertools/blockbot/Listeners.java @@ -61,7 +61,7 @@ private void sendMessageToGame(MinecraftServer server, MessageReceivedEvent even String msg = event.getMessage().getContentDisplay(); int colour = Objects.requireNonNull(event.getMember()).getColorRaw(); Text message = new LiteralText(msg); - MutableText sender = new LiteralText("<@").append(new LiteralText(event.getMember().getEffectiveName()).styled(style -> style.withColor(TextColor.fromRgb(colour)))).append(new LiteralText("> ")); + MutableText sender = new LiteralText("<§7§o@§r").append(new LiteralText(event.getMember().getEffectiveName()).styled(style -> style.withColor(TextColor.fromRgb(colour)))).append(new LiteralText("> ")); if (!event.getMessage().getAttachments().isEmpty()) { event.getMessage().getAttachments().forEach(attachment -> server.getPlayerManager().broadcastChatMessage(sender.append(new LiteralText(attachment.getUrl()).styled(s -> s.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, attachment.getUrl())))), MessageType.SYSTEM, Util.NIL_UUID)); if (!msg.equals("")) server.getPlayerManager().broadcastChatMessage(sender.append(message), MessageType.SYSTEM, Util.NIL_UUID);