summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/entity/Player.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 723464b7..73816a05 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -242,6 +242,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.
*
* @param loc the location to play the effect at