mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-27 23:29:58 -04:00
Fix Message API javadoc (#3342)
This commit is contained in:
parent
6f59c1844c
commit
e982ae85ea
1 changed files with 2 additions and 3 deletions
|
@ -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>
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue