> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/play-queue
> Every page: https://botghost.com/docs/llms.txt

# Play Queue

> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.

![](https://botghost.com/docs/content/assets/workspace/image%20(1211).png)

The Play Queue action allows you to begin playing the music that is in the music queue. Ensure you add music to the queue with [add to queue](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/add-to-queue) first. You can use the [`{MusicCurrentTrack}`](https://botghost.com/docs/custom-commands-and-events/variables#music-objects) object variable to reference the currently playing track.

## Server

This setting allows you to target a server. You have two options to select from:

**Current Server**

![](https://botghost.com/docs/content/assets/workspace/image%20(1227).png)

When you select the 'Current Server' option, the music queue of the current server will be played.

**Server ID**

![](https://botghost.com/docs/content/assets/workspace/image%20(1228).png)

When you select the 'Server ID' option, the music queue of the provided server ID will be played.

### Server ID

In this field you can enter the ID of the server where you want to play the music queue. Variables can be used in this field.
