localSound
abstract fun localSound(player: Player, sound: Sound, location: Location, volume: Float = 1.0f, pitch: Float = 1.0f)
Plays a sound at a specific location for the player only, without affecting other players.
Parameters
player
The target player.
sound
The sound to play.
location
The location from which the sound originates.
volume
The volume level.
pitch
The pitch level.