Sender UUID is being stripped from PacketPlayOutChat packet
Artuto opened this issue ยท 2 comments
Describe the bug
ProtocolLib is stripping the sender
UUID from server-sent chat packets. This is important because it prevents chat formatting plugins from using Minecraft's 1.16 social interaction menu where players can ignore other players.
To Reproduce
-
Using pakkit (or something similar) to see the packet content:
- Download the test plugin from here (source is available here)
- Join the server and send a chat message.
- Observe on the pakkit window the structure of the clientbound server chat packet and notice the sender UUID is 0 (even though it was set on the code);
- Use /reload to make the plugin remove the ProtocolLib packet listener.
- Send the chat message again and look at pakkit again (the UUID is present!):
-
Running another Minecraft instance and ignoring the player that will send the message (using "P")
Notice how after you do /reload the message will get properly filtered.
Expected behavior
The set sender UUID should be present in the packet.
Version Info
dump-2021-07-05_23.04.52.txt