Block anvil place sounds?

Discussion in 'Spigot Plugin Development' started by KinJahoes, May 19, 2017.

  1. Hello,

    I'm trying to prevent anvil place sounds whilst block placing and what not are disable in a world. Since the block placing is cancelled players can keep spamming which produces the place sound.

    I've seen this done on a few networks, but not 100% sure how.


    Thank you! :)
     
  2. You could try putting the players into adventure mode, then they won't be able to place the anvil at all, so not only will you no longer need to cancel the block place event, but the sound won't play.
     
  3. Not really the solution I'm looking for, but thank you. :)
     
  4. I believe you can use packets to cancel particular sounds.

    The packet is called Named_Sound_Effect or just Sound_Effect I believe (Don't quote me on this :p)
    http://wiki.vg/Protocol#Sound_Effect