Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-1288

Cancelling BlockPlaceEvent doesn't stop placement sound going to players.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • [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)

      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);
      }

            Unassigned Unassigned
            BigScary Ryan Hamshire
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: