ProtocolLib

3M Downloads

Sender UUID is being stripped from PacketPlayOutChat packet

Artuto opened this issue ยท 2 comments

commented

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:

    1. Download the test plugin from here (source is available here)
    2. Join the server and send a chat message.
    3. 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);
      image
    4. Use /reload to make the plugin remove the ProtocolLib packet listener.
    5. Send the chat message again and look at pakkit again (the UUID is present!):
      image
  • 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

commented

Bump

commented

Thank you for looking into this! It's refreshing to see a real issue in the sea of "i refuse to read the description and get the right version for my server" issues haha

I think I have a fix in mind for this