> For the complete documentation index, see [llms.txt](https://vulkan-technologies.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vulkan-technologies.gitbook.io/documentation/vulkan-menu/configuration/actions.md).

# Actions

### Send message

Send a message to the player that clicked on the item.

```yaml
[message] <gray>Hello <green>%player_name</green>!
```

### Broadcast message

Broadcast a message to all players on the server.

```yaml
[broadcast] <rainbow>Hello everyone!
```

### Action bar

Sets the action bar of the player that clicked on the item.

```yaml
[action-bar] <green>Hello from the action bar
```

### Play sound

Plays sounds to the player that clicked on the item.

```yaml
[sound] <sound> [volume] [pitch] [source]
```

**Parameters:**

* `sound`: The sound to play (e.g., `block.anvil.hit`)
* `volume`: Optional volume (default: 1.0)
* `pitch`: Optional pitch (default: 1.0)
* `source`: Optional sound source/category

### Broadcast sound

Broadcasts a sound to all players on the server.

```yaml
[broadcast-sound] <sound> [volume] [pitch] [source]
```

**Parameters:**

* `sound`: The sound to play (e.g., `block.anvil.hit`)
* `volume`: Optional volume (default: 1.0)
* `pitch`: Optional pitch (default: 1.0)
* `source`: Optional sound source/category

### Console command

Executes a command from the console

```yaml
[console] kill <player>
```

### Player command

Executes a command as the player that clicked on the item.

```yaml
[player] say Hello from VulkanMenu.
```

### Title

Displays a title for the player that clicked on the item.

```yaml
[title] <title>;[subtitle];[fadeIn];[stay];[fadeOut]
```

**Parameters:**

* `title`: The main title text
* `subtitle`: Optional subtitle text
* `fadeIn`: Optional fade in duration in ticks (default: 10)
* `stay`: Optional stay duration in ticks (default: 70)
* `fadeOut`: Optional fade out duration in ticks (default: 20)

### Close inventory

Closes menu.

```yaml
[close]
```

### Teleport

Teleports the player that clicked on the item to the specified location.

```yaml
[teleport] <x> <y> <z> [yaw] [pitch] <world>
```

### Open menu

Opens the specified menu to the player that clicked on the item.

```yaml
[open-menu] <id>
```

### Refresh slot

Refresh item in the specified slot.

```yaml
[refresh-slot] <slot>
```

### Refresh

Refresh all menu items.

```yaml
[refresh]
```

### Refresh title

Refreshes the menu title.

```yaml
[refresh-title]
```

### Set variable

Sets a variable value.

```yaml
[set-variable] <id> <value>
```

### Remove variable

Remove a variable from the menu.

```yaml
[remove-variable] <id>
```

### Add permission

Adds the specified permission to the player that clicked on the item.

```yaml
[add-permission] <permission>
```

{% hint style="warning" %}
Requires Vault and a permission on your server.
{% endhint %}

### Remove permission

Removes the specified permission from the player that clicked on the item.

```yaml
[remove-permission] <permission>
```

{% hint style="warning" %}
Requires Vault and a permission on your server.
{% endhint %}

### Deposit money

Deposits the specified amount on the specified currency to the player's account.

```yaml
[deposit-money] <amount> [currency]
```

{% hint style="warning" %}
Requires Vault and an economy plugin on your server.
{% endhint %}

### Withdraw money

Withdraw the specified amount from the specified currency from the player's account.

```yaml
[withdraw] <amount> [currency]
```

{% hint style="warning" %}
Requires Vault and an economy plugin on your server.
{% endhint %}

### Set metadata

Sets metadata on the player.

```yaml
[set-meta] <key> <value>
```

**Parameters:**

* `key`: The metadata key
* `value`: The value to set

### Remove metadata

Removes metadata from the player.

```yaml
[remove-meta] <key>
```

**Parameters:**

* `key`: The metadata key to remove
