ProtocolLib - Differentiate packets sent by server

Discussion in 'Plugin Development' started by augustt198, Dec 7, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    augustt198

    Hi, I'm making a plugin where I'm saving some packets sent by the server to a player, so they can be sent at a later time. In onPacketSending(), I record the packet and then cancel the event so that the player won't get the packet twice. The problem is, once I get around to sending the packets saved for the player, I have no way of knowing if the packet is a recorded one (which shouldn't be cancelled and recorded) or one that has just occurred (which should be cancelled and recorded). So, is there any way to perhaps edit the packets I actually want send so they can be differentiated from those I don't want to send? (aka add some sort of tag to the packet).

    Bump.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
Thread Status:
Not open for further replies.

Share This Page