--- title: net.axay.kspigot.sound - --- //[KSpigot](../index.md)/[net.axay.kspigot.sound](index.md) # Package net.axay.kspigot.sound ## Types | Name| Summary| |---|---| | [KSpigotSound](-k-spigot-sound/index.md)| [jvm]
Content
data class [KSpigotSound](-k-spigot-sound/index.md)(**sound**: Sound, **volume**: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html), **pitch**: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html), **category**: SoundCategory?)


## Functions | Name| Summary| |---|---| | [sound](sound.md)| [jvm]
Brief description


Accesses the sound builder.


Content
fun [sound](sound.md)(sound: Sound, builder: [KSpigotSound](-k-spigot-sound/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [KSpigotSound](-k-spigot-sound/index.md)


[jvm]
Brief description


Accesses the sound builder and then immediately plays the sound at the given location.


Content
fun Location.[sound](sound.md)(sound: Sound, builder: [KSpigotSound](-k-spigot-sound/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)?)


[jvm]
Brief description


Accesses the sound builder and then immediately plays the sound for the player.


Content
fun Player.[sound](sound.md)(sound: Sound, builder: [KSpigotSound](-k-spigot-sound/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)?)