ProtocolLib

3M Downloads

Custom payload packets for custom F3 brand text

TheosisOfficial opened this issue ยท 2 comments

commented

I want to listen for the brand payload packet that is sent to the client upon joining the server, and then modify it to contain my own custom text before it reaches the client. I have a packet listener, which is listening for PacketType.Play.Server.CUSTOM_PAYLOAD packets. However, when I try to read the data from the packets that are sent (they are sent when a player joins the server), I get seemingly nothing. Methods such as getStrings, getByteArrays, getDataValueCollectionModifier, all have a size of 0. I'm fairly inexperienced with packets and ProtocolLib, so I'm not sure what else to try. I've searched online, but any issues similar to mine seem to be different to how things work now (before 1.19.3).

Would really appreciate any help and guidance.

commented

Did you get anything interesting? @TheosisOfficial

commented

Did you get anything interesting? @TheosisOfficial

What do you mean?