Help: Sending packets with protocollib

Discussion in 'Spigot Plugin Development' started by konsolas, May 8, 2015.

  1. konsolas

    Supporter

    Before you judge me from the title, that's not a full description of my problem.

    I'd like to know if it's possible to send a packet with protocollib, but not have it be intercepted by any outbound packet listeners.
     
  2. @konsolas there's a boolean in the sendServerPacket method which manages this.
     
  3. konsolas

    Supporter

    @DarkSeraphim

    I happen to be using PacketWrapper, will I have to change this?
     
  4. Extend the packet wrapper and override the sendPacket/receivePacket method (depending on whether it's a client or server packet)
     
  5. konsolas

    Supporter

    Actually, I may as well just modify AbstractPacket. Thanks for the help.