Wiki 9Minecraft Wiki 9Minecraft

Execute Commands When Players Buy or Sell

Java EditionPluginGuides 4FAQ 10Related mods 48
DownloadUltimateShops Plugin

Get the files on 9Minecraft

Adding Buy and Sell Commands

You can trigger custom commands when players interact with your shop. Stand near your shop and use:

`

/ushop addBuyCommand COMMAND

/ushop addSellCommand COMMAND

`

Do not include the forward slash (/). For example: addBuyCommand give @p diamond 1 will give the buyer a diamond when they purchase from your shop.

Viewing and Removing Commands

List all commands attached to your shop with /ushop listBuyCommands and /ushop listSellCommands. Each command has an index number. Remove a specific command using /ushop removeBuyCommand INDEX or /ushop removeSellCommand INDEX.

To clear all commands at once, use /ushop clearBuyCommands, /ushop clearSellCommands, or /ushop clearCommands to remove everything. This feature is useful for giving rewards, triggering announcements, or integrating with other plugins.

More guides for this mod