Skip to content

Commit

Permalink
Fix Message API javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Sep 27, 2023
1 parent 3ccb77f commit 546dc06
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
* });
* }</pre>
*/
Expand Down

0 comments on commit 546dc06

Please sign in to comment.