Add Player.stopSound

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2016-06-11 09:13:34 +10:00
parent f5378fcb05
commit 09cb84067f

View file

@ -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.
*