kotlin
object BasicAudioSchedulerPlatform scheduling hook; Paper installs entity-region scheduling.
object BasicAudioSchedulerPlatform scheduling hook; Paper installs entity-region scheduling.
fun playBasicSound(player: ServerPlayer, soundId: String, position: Vec3? = null, category: SoundSource = SoundSource.MUSIC, volume: Float = 1f, pitch: Float = 1f): CompletableFuture<Unit>Play a client-known sound on all three platforms; completion confirms sending only.
fun stopBasicSound(player: ServerPlayer, soundId: String? = null, category: SoundSource? = null): CompletableFuture<Unit>Stop by ID/category, not by playback instance. Null filters match all sounds.