From a697cfccaf3ea28e29211285b6c4b215e702b4f7 Mon Sep 17 00:00:00 2001 From: reaby Date: Mon, 8 Jul 2024 21:45:39 +0300 Subject: [PATCH] fix jukebox --- core/plugins/maps/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/plugins/maps/index.ts b/core/plugins/maps/index.ts index f333c71..40ef232 100644 --- a/core/plugins/maps/index.ts +++ b/core/plugins/maps/index.ts @@ -136,8 +136,12 @@ export default class Maps extends Plugin { if (this.queue.length > 0) { const map = this.queue.shift(); if (map) { + try { await tmc.server.call("ChooseNextMap", map.File); tmc.chat(`¤info¤Map ¤white¤${map.Name} ¤info¤chosen by ¤white¤${map.QueueNickName}`); + } catch (e:any) { + tmc.cli(`¤error¤${e.message}`); + } } } }