> For the complete documentation index, see [llms.txt](https://beeted-plugins.gitbook.io/beeted-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://beeted-plugins.gitbook.io/beeted-plugins/sethome-gui/getting-started/custom-gui-actions.md).

# Custom GUI Actions

Execute commands from the console or via the player on any element or menu.

{% hint style="info" %}
You can use PlaceholderAPI in commands executed by actions.
{% endhint %}

### Example with multiple commands:

```yml
server-menu:
  type: BARRIER
  slot: 4
  display-name: "&cReturn to the main menu"
  close-inventory: true  # optional, defaults to true
  commands:
    - "[player] menu"
    - "[console] say %player_name% has opened the main menu"
```

### Example with a single command:

```yml
server-menu:
  type: BARRIER
  slot: 4
  display-name: "&cReturn to the main menu"
  close-inventory: true  # optional, defaults to true
  command: "[player] menu"
```
