---
title: KSpigotSound -
---
//[KSpigot](../../index.md)/[net.axay.kspigot.sound](../index.md)/[KSpigotSound](index.md)
# KSpigotSound
[jvm] data class [KSpigotSound](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|
|---|---|
| [component1](component1.md)| [jvm]
Content
operator fun [component1](component1.md)(): Sound
| [component2](component2.md)| [jvm]
Content
operator fun [component2](component2.md)(): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)
| [component3](component3.md)| [jvm]
Content
operator fun [component3](component3.md)(): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)
| [component4](component4.md)| [jvm]
Content
operator fun [component4](component4.md)(): SoundCategory?
| [copy](copy.md)| [jvm]
Content
fun [copy](copy.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?): [KSpigotSound](index.md)
| [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)| [jvm]
Content
open operator override fun [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
| [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)| [jvm]
Content
open override fun [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [playAt](play-at.md)| [jvm]
Brief description
Plays the sound at the location. It will be audible for everyone near it.
Content
fun [playAt](play-at.md)(loc: Location)
| [playFor](play-for.md)| [jvm]
Brief description
Plays the sound at the location of the player. It will be only audible for the player.
Content
fun [playFor](play-for.md)(player: Player)
| [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)| [jvm]
Content
open override fun [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
## Properties
| Name| Summary|
|---|---|
| [category](index.md#net.axay.kspigot.sound/KSpigotSound/category/#/PointingToDeclaration/)| [jvm] var [category](index.md#net.axay.kspigot.sound/KSpigotSound/category/#/PointingToDeclaration/): SoundCategory?
| [pitch](index.md#net.axay.kspigot.sound/KSpigotSound/pitch/#/PointingToDeclaration/)| [jvm] var [pitch](index.md#net.axay.kspigot.sound/KSpigotSound/pitch/#/PointingToDeclaration/): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)
| [sound](index.md#net.axay.kspigot.sound/KSpigotSound/sound/#/PointingToDeclaration/)| [jvm] val [sound](index.md#net.axay.kspigot.sound/KSpigotSound/sound/#/PointingToDeclaration/): Sound
| [volume](index.md#net.axay.kspigot.sound/KSpigotSound/volume/#/PointingToDeclaration/)| [jvm] var [volume](index.md#net.axay.kspigot.sound/KSpigotSound/volume/#/PointingToDeclaration/): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)