mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-30 19:52:06 -07:00
Fix Player#chat for 1.19.3 (#8684)
This commit is contained in:
@@ -122,9 +122,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ if (msg.startsWith("/")) {
|
||||
+ this.getHandle().connection.handleCommand(msg);
|
||||
+ } else {
|
||||
+ // TODO text filtering
|
||||
+ final PlayerChatMessage playerChatMessage = PlayerChatMessage.system(msg).withResult(new net.minecraft.network.chat.ChatDecorator.ModernResult(Component.literal(msg), true, false));
|
||||
+ // TODO chat decorating
|
||||
+ this.getHandle().connection.chat(msg, PlayerChatMessage.system(msg), false);
|
||||
+ // TODO text filtering
|
||||
+ this.getHandle().connection.chat(msg, playerChatMessage, false);
|
||||
+ }
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
Reference in New Issue
Block a user