diff --git a/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java b/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java index 8489de55c2..93c0853f34 100644 --- a/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java +++ b/fabric-message-api-v1/src/main/java/net/fabricmc/fabric/api/message/v1/ServerMessageDecoratorEvent.java @@ -52,10 +52,9 @@ * ServerMessageDecoratorEvent.EVENT.register(ServerMessageDecoratorEvent.STYLING_PHASE, (sender, message) -> { * // Apply orange color to messages sent by server operators * if (sender != null && sender.server.getPlayerManager().isOperator(sender.getGameProfile())) { - * return CompletableFuture.completedFuture( - * message.copy().styled(style -> style.withColor(0xFFA500))); + * return message.copy().styled(style -> style.withColor(0xFFA500)); * } - * return CompletableFuture.completedFuture(message); + * return message; * }); * } */