Click Commands

Items have a feature to execute commands upon being clicked on. The commands can either be executed as the player or the server's console. You can even use placeholders in commands, as they are automatically translated.

Adding Commands

  1. Open a menu file (UHCReloaded/menus/).

  2. Go to an item of your choice.

  3. Add a command using the following formats:

    • As player: player->[YOUR COMMAND]

    • As console: console->[YOUR COMMAND]

Both Examples

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