Skip to main content

Command Tags

Command Tags allow you to perform advanced actions from panels using commands defined in YAML configuration files. They are used in actions: sections across buttons, inputs, and panel events.

These tags are executed when an action is triggered (e.g. a button is clicked or a panel is opened), and provide functionality beyond just running normal commands.


Command Tag List

The following table lists the available Command Tag types and their functions.

Tag SyntaxDescription
[open] panelNameOpens another panel by name.
[close]Closes the current panel.
[refresh] delayRe-renders the current panel (useful for dynamic content). Enter a delay number if you want the refresh to be delayed in ticks.
[previous]Opens the previously open panel in the current session.
[console] commandExecutes the specified command from the server console.
[give] material amountSimple tag to give players items. Items drop on the ground if there's no space.
[chat] /commandSends a command or chat through the player's chat input (e.g., /msg).
[msg] messageSends a message to the player. Supports color codes and placeholders.
[server] serverNameUse Velocity or Bungeecord to send player to another server.
[sound] sound volume=num pitch=num category=numPlay sounds with optional volume settings.
[stopsound] soundStops the chosen sound from playing.
[teleport] x y z world=name yaw=num pitch=num player=nameTeleport player with optional arguments.
[itemaction] enchant slot add/remove/clear enchantment levelEnchant an item placed in the Panel.
[itemaction] repair slotEnchant an item placed in the Panel.
[itemaction] amount slot numChang the amount of an item stack in the Panel.
[itemaction] remove slotRemoves an item placed in the Panel.
[session] set key valueStores a key-value pair in session data (temporary until panel close).
[session] del keyDeletes a key from session data.
[data] set key valueStores a key-value pair in persistent data (data.yml).
[data] overwrite key valueOverwrites an existing key in data.yml.
[data] math key expressionModifies the numeric value at a key using a math expression.
[data] del keyDeletes a key from persistent data.
[data] clearClears all persistent data for the player.

Example

To set a session variable named playerName to the value of %player_name%, use:

- '[session] set playerName %player_name%'

To open a panel called confirm_panel after closing the current one. This will not reset session data as the plugin knows when panels are opened from another panel.

- '[close]'
- '[open] confirm_panel'

tip

You can chain multiple command tags in the commands section to create complex behaviors.