Skip to content

Commit

Permalink
fix jukebox
Browse files Browse the repository at this point in the history
  • Loading branch information
reaby committed Jul 8, 2024
1 parent fad5ad9 commit a697cfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/plugins/maps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}
}
}
Expand Down

0 comments on commit a697cfc

Please sign in to comment.