ProtocolLib

3M Downloads

Set Player On Ground packet

aliffazlan opened this issue ยท 1 comments

commented

Hey, I am trying to find the packet that sets players on the ground, and I can't seem to find any reference to it in the JavaDocs. I am aware that the player position packet does have a boolean field that does this, but I am looking for specifically this packet.

The packet I'm referring to is this one: https://wiki.vg/Protocol#Set_Player_On_Ground

Any help would be greatly appreciated, and sorry if I missed anything, I am still extremely new to plugin development :))

commented

You can jusy find PacketType with the same packet ID (0x19) in PacketType class

When searching, pay attention to the type of protocol (most often PLAY) and the direction of the packet (in your case, the sender is Client):

public static final PacketType GROUND = new PacketType(PROTOCOL, SENDER, 0x19, "Flying$d");

If you decompile PacketType in your IDE, there the packet IDs are specified in decimal notation. Thus, when decompiling, you should look for a packet with ID 25 (it's 0x19 in decimal)