Solved Sound packets help

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

Thread Status:
Not open for further replies.
  1. What are the names for specific block place sounds? Im trying to cancel the block place sounds sent when a certain player places a block, so that noone can hear it, but I'm new to Protocollib and unfortanetly I can't find a tutorial explaining these things
     
  2. This piece of code should extract the sound name from the packet. Then you can for example print that sound in the console and then you go on the server, make the sound and then you know the sound name. Then you can disable that print and check if the sound is equal to the sound of that block and then cancel it.

    Code (Text):
    packet.getStrings().read(o);
     
    • Winner Winner x 1

  3. This might help you with intercepting the packet ;)
     
    • Winner Winner x 1
  4. You guys perfectly answered everything thanks!
     
Thread Status:
Not open for further replies.