Stop Sound (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.4, 2.7 (stop all sounds)

Syntax

stop (all sound[s]|sound[s] %-strings%) [(in [the]|from) %-soundcategory%] [(from playing to|for) %players%]

Description

Stops specific or all sounds from playing to a group of players. Both Minecraft sound names and <a href="https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html">Spigot sound names</a> are supported. Resource pack sounds are supported too. The sound category is 'master' by default. A sound can't be stopped from a different category.

Please note that sound names can get changed in any Minecraft or Spigot version, or even removed from Minecraft itself.

Examples

stop sound "block.chest.open" for the player
stop playing sounds "ambient.underwater.loop" and "ambient.underwater.loop.additions" to the player
stop all sounds for all players
stop sound in the record category

View source