[SPIGOT-7071] Add Player#stopSound(SoundCategory category) Created: 19/Jun/22  Updated: 25/Dec/24  Resolved: 01/Jul/22

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

Type: New Feature Priority: Minor
Reporter: SkytAsul Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: 1.19
Guidelines Read: Yes

 Description   

There is currently no method to stop a sound category from playing, and we cannot use Player#stopSound(Sound sound, SoundCategory category) with the "sound" argument null as it is not nullable.
My solution is to add a Player#stopSound(SoundCategory category) method.



 Comments   
Comment by MartenM [ 20/Jun/22 ]

PR for this feature: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/765/overview

Generated at Sat Dec 13 15:21:05 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.