Fix Message API javadoc ()

This commit is contained in:
apple502j 2023-10-01 20:36:47 +09:00 committed by GitHub
parent 6f59c1844c
commit e982ae85ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,10 +52,9 @@ import net.fabricmc.fabric.api.event.EventFactory;
* 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;
* });
* }</pre>
*/