From f2e794b6c7ed1cd21251cced4aaf638ba3f93055 Mon Sep 17 00:00:00 2001 From: psyopcutie Date: Wed, 29 Jul 2026 11:43:09 +0200 Subject: [PATCH] move jingles command to other branch --- .../system/command/sets/AudioCommandSet.kt | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/Server/src/main/core/game/system/command/sets/AudioCommandSet.kt b/Server/src/main/core/game/system/command/sets/AudioCommandSet.kt index 0c4217b69..e5a4fb522 100644 --- a/Server/src/main/core/game/system/command/sets/AudioCommandSet.kt +++ b/Server/src/main/core/game/system/command/sets/AudioCommandSet.kt @@ -48,29 +48,6 @@ class MusicCommandSet : CommandSet(Privilege.STANDARD){ notify(player,"Now playing jingle $id") } - define("jingles", Privilege.ADMIN, "::jingles From Jingle ID To Jingle ID (opt) Duration Per Jingle", "Plays jingles from the From ID to the To ID, with a delay of 5 between each, unless specified otherwise") { player, args -> - - if (args.size < 3) { - reject(player, "Syntax error: ::jingles <(opt) Duration Per Jingle>") - return@define - } - val jingleFrom = args[1].toInt() - val jingleTo = args[2].toInt() - val jingleDelay = (args.getOrNull(3) ?: "5").toInt() - - queueScript(player, 1, QueueStrength.WEAK) { stage: Int -> - val jingleId = jingleFrom + stage - PacketRepository.send(MusicPacket::class.java, MusicContext(player, jingleId, true)) - notify(player, "Now playing jingle $jingleId") - - if (jingleId == jingleTo) { - return@queueScript stopExecuting(player) - } - - return@queueScript delayScript(player, jingleDelay) - } - } - /** * Command that lets you play a song via the ID instead of the song name * this is mostly useful for custom tracks that aren't in the ingame