forked from Telesphoreo/DynamicShop3
-
Notifications
You must be signed in to change notification settings - Fork 1
Command Items
Cupjok edited this page Sep 13, 2026
·
1 revision
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.
- Add the item to the shop normally (see Creating and Editing Shops). The shown item is its icon.
- Shift + right-click it → item settings → Item type button → switch to Command.
- 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.
-
Add command: type it in chat, with or without
Placeholders in commands: {player}, {uuid}, {shop}.
- 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
/sellor quick sell). - A command item without commands cannot be bought, and nobody is charged.
- Works with every currency, including MultiCurrency.
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).