sendSound

abstract fun sendSound(player: Player, type: Sound, volume: Float, pitch: Float, relative: Boolean, offset: Vector)

Sends a named sound effect to the player via a packet.

Parameters

player

The target player.

type

The sound to play.

volume

The volume level.

pitch

The pitch level.

relative

Whether the sound position is relative to the player.

offset

The positional offset of the sound.