Menu Actions
Actions are executable operations attached to items, menus, and dialog buttons. They are written as strings following the format:
Global optional parameters available on every action:
Parameter | Type | Description |
|---|---|---|
| int (ticks) | Wait this many ticks before executing. 20 ticks = 1 second. |
| float (0–100) | Probability percentage the action fires. Default |
All argument strings support %placeholder% substitution resolved through the menu's placeholder context.
Command Actions
console
Executes a command as the console (server operator).
player
Executes a command as the clicking player.
Player Actions
message
Sends a chat message to the player. Supports MiniMessage formatting.
actionbar
Displays a message in the player's action bar.
sound
Plays a sound to the player. Format: namespace:key optionally followed by volume and pitch.
connect
Transfers the player to another server (via BungeeCord/Velocity plugin messaging channel).
Inventory Actions
close
Closes the player's currently open inventory.
Menu Navigation Actions
open-menu
Opens a menu by its ID. Parameters can be passed with :key=value syntax separated by colons.
Parameters become available as %param.key% placeholders in the opened menu.
refresh
Fully recomputes the current menu (re-evaluates all variables, requirements, and items).
refresh-slot
Recomputes a single slot index.
refresh-layout
Recomputes a named layout instance.
next-page
Advances the named layout to the next page.
previous-page
Returns the named layout to the previous page.
first-page
Resets the named layout to page 0.
Variable Actions
set-variable
Sets or updates a menu variable. The value supports arithmetic and ternary expressions.
See Variables for the full expression syntax.
Action Summary Table
ID | Argument | Description |
|---|---|---|
| command string | Run command as console |
| command string | Run command as player |
| MiniMessage text | Send chat message |
| MiniMessage text | Send action bar message |
|
| Play sound |
| server name | Transfer to server |
| — | Close inventory |
|
| Open menu with params |
| — | Recompute full menu |
| slot index | Recompute one slot |
| layout id | Recompute one layout |
| layout id | Go to next page |
| layout id | Go to previous page |
| layout id | Jump to first page |
|
| Set menu variable |