From 09cb84067f0cf68eecdd7b025de1ca5730706878 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 11 Jun 2016 09:13:34 +1000 Subject: [PATCH] Add Player.stopSound By: md_5 --- .../src/main/java/org/bukkit/entity/Player.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 723464b7bc..73816a0580 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -241,6 +241,20 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline */ public void playSound(Location location, String sound, float volume, float pitch); + /** + * Stop the specified sound from playing. + * + * @param sound the sound to stop + */ + public void stopSound(Sound sound); + + /** + * Stop the specified sound from playing. + * + * @param sound the sound to stop + */ + public void stopSound(String sound); + /** * Plays an effect to just this player. *