Add 1.6 PlaySound command. Fixes BUKKIT-4489

By: h31ix <zero_gravity@outlook.com>
This commit is contained in:
Bukkit/Spigot
2013-07-19 18:02:40 -04:00
parent 133585430c
commit 06abcc1323
3 changed files with 102 additions and 0 deletions

View File

@@ -214,6 +214,20 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
*/
public void playSound(Location location, Sound sound, float volume, float pitch);
/**
* Play a sound for a player at the location.
* <p>
* This function will fail silently if Location or Sound are null. No
* sound will be heard by the player if their client does not have the
* respective sound for the value passed.
*
* @param location the location to play the sound
* @param sound the internal sound name to play
* @param volume the volume of the sound
* @param pitch the pitch of the sound
*/
public void playSound(Location location, String sound, float volume, float pitch);
/**
* Plays an effect to just this player.
*