How to prevent a sound packet from being sent?

Discussion in 'Spigot Plugin Development' started by TheGamerPlayz, Jun 1, 2016.

  1. How would I prevent a sound packet being sent from a block being placed?
  2. Easiest way is to cancel the event, place the block, and then remove the block from the player's inventory (or something similar).
    You may have to listen to the sound packet and cancel it.
  3. Thats the thing how would I make a listener for a sound packet? I'm just getting started in them
  4. I remember that ProtocolLib already have a tutorial on their API, seem ok?