KSpigotSound

data class KSpigotSound(sound: Sound, volume: Float, pitch: Float, category: SoundCategory?)

Functions

playAt
Link copied to clipboard
fun playAt(loc: Location)
Plays the sound at the location.
playFor
Link copied to clipboard
fun playFor(player: Player)
Plays the sound at the location of the player.

Properties

category
Link copied to clipboard
var category: SoundCategory? = null
pitch
Link copied to clipboard
var pitch: Float = 1f
sound
Link copied to clipboard
val sound: Sound
volume
Link copied to clipboard
var volume: Float = 1f