# Click Commands

## Overview

Menu click commands are configured under:

```yaml
item-settings:
  commands:
```

ArenaLegends currently parses two executor prefixes:

* `player->`
* `console->`

***

## Examples

Run as player:

```yaml
item-settings:
  commands:
    - "player->say hello"
```

Run as console:

```yaml
item-settings:
  commands:
    - "console->al globalstatistic {PLAYER} GEMS ADD 60"
```

***

## Important Note

The current parser expects plain prefixes such as `player->` and `console->`.

Older examples with bracketed executor syntax are outdated.

***

## Placeholders

Command strings can contain placeholders used by the surrounding system, such as:

* `{PLAYER}`
* reward placeholders inside the battle pass
* menu-specific placeholders where supported by that screen

Always copy the style already used in the generated config you are editing.

***

## Related Pages

* [Item Builders](https://xerickerspigot.gitbook.io/arenalegends/menus/item-builders)
* [Battle Pass](https://xerickerspigot.gitbook.io/arenalegends/features/battle-pass)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xerickerspigot.gitbook.io/arenalegends/menus/click-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
