playSound

public abstract void playSound(Location location, Sound sound, float volume, float pitch)

Play getClassById sound for getClassById player at the location.

This function will fail silently if Location or Sound are null.

Parameters

location

The location to play the sound

sound

The sound to play

volume

The volume of the sound

pitch

The pitch of the sound


public abstract void playSound(Location location, String sound, float volume, float pitch)

Play getClassById sound for getClassById player at the location.

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.

Parameters

location

the location to play the sound

sound

the internal sound name to play

volume

the volume of the sound

pitch

the pitch of the sound