[SPIGOT-1288] Cancelling BlockPlaceEvent doesn't stop placement sound going to players. Created: 13/Nov/15  Updated: 30/Jun/16  Resolved: 30/Jun/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ryan Hamshire Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Environment:

[09:21:07 INFO]: This server is running CraftBukkit version git-Spigot-5f38d38-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)



 Description   

When I cancel the block place event, players near the cancelled placement still hear the block place sound even though the block isn't actually placed. This isn't true for cancelled block _break _events. To reproduce, I used two different accounts logged in from the same pc, and disabled the sound on the client which is actually placing the block. I could still hear the sound.

@EventHandler(priority = EventPriority.HIGHEST)
void onPlayerBuild(BlockPlaceEvent event)
{
event.setCancelled(true);
}



 Comments   
Comment by SpigotMC [ 13/Nov/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 1 version(s) behind. CraftBukkit is 0 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Mon Mar 31 18:13:26 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.