Click Commands

🧭 Overview

Items can run commands when clicked. Commands can be executed either as the player or via the server console.

You can also use placeholders in commands (like {PLAYER}), which will automatically be replaced with the correct value.


🛠 How to Add

  1. Open the menu or item file you want to modify.

  2. Find the item and locate the commands section under item-settings.

    • If it doesn’t exist, you can add it.

  3. Add commands using one of these formats:

Execution Type
Format
Description

Player

player->[COMMAND]

The command will run as the clicking player.

Console

console->[COMMAND]

The command will run from the server console.


💡 Example

item-builder:
  my-item:
    item-settings:
      commands:
        - "player->say this command is being executed as {PLAYER}"
        - "console->say this command is being executed by the console"

Last updated