diff --git a/Server/src/main/kotlin/obsidian/server/player/PlayerUpdates.kt b/Server/src/main/kotlin/obsidian/server/player/PlayerUpdates.kt index d33266a..ffbd2db 100644 --- a/Server/src/main/kotlin/obsidian/server/player/PlayerUpdates.kt +++ b/Server/src/main/kotlin/obsidian/server/player/PlayerUpdates.kt @@ -35,11 +35,11 @@ class PlayerUpdates(val link: Link) : AudioEventAdapter() { */ var enabled: Boolean = true set(value) { + field = value + link.client.launch { if (value) start() else stop() } - - field = value } /**