Skip to content

Command Items

Cupjok edited this page Sep 13, 2026 · 1 revision

Command Items

A command item is a shop item that runs console commands when bought, instead of giving the item. Use it for ranks, keys, kits, pets, homes or anything a command can do.

Make one

  1. Add the item to the shop normally (see Creating and Editing Shops). The shown item is its icon.
  2. Shift + right-click it → item settings → Item type button → switch to Command.
  3. Click Edit commands. In the editor:
    • Add command: type it in chat, with or without /. It is saved, not run. Click a command to edit it, right-click to delete it (up to 45).
    • Rename / Change lore: the name and lore shown in the shop. Every colour format works (&a, &#FF5555, <gradient>, …). Right-click resets them.
    • Preview shows how it will look.

Placeholders in commands: {player}, {uuid}, {shop}.

Behaviour

  • Buying charges the price and runs every command once per unit bought, from the console.
  • Command items cannot be sold (no sell buttons, never taken by /sell or quick sell).
  • A command item without commands cannot be bought, and nobody is charged.
  • Works with every currency, including MultiCurrency.

Shop-wide buy/sell commands

This is a different feature. /ds shop <shop> command … adds commands that run on every buy or sell in that shop, for example for logging or rewards. Placeholders: {player}, {shop}, {itemType}, {amount}, {priceSum}, and {tax} (sell).

Clone this wiki locally