-
Notifications
You must be signed in to change notification settings - Fork 2
Commands
Mrcomputer1 edited this page Dec 7, 2025
·
17 revisions
| Command | Note |
|---|---|
| /spt | Open the GUI if enabled, otherwise shows version information |
| /spt help | In game help |
| /spt create ... | Create a new product in a single command. (See below for usage) |
| /spt add [username] | Create a new product, username is only available if you have permission |
| /spt list [username] | List a product, username is only available if you have permission |
| /spt setcost <id> [material] [count] | Set the cost, hold the item or set the material and count |
| /spt setcost2 <id> (none|[material] [count]) | Set or remove the second cost item. To set, hold the item or enter the material and count |
| /spt setproduct <id> [material] [count] | Set the product item, hold the item or set the material and count |
| /spt enable <id> | Enable the product |
| /spt disable <id> | Disable the product |
| /spt hide <id> | Hide the product |
| /spt version | Version Information |
| /spt toggle | Turn off right click trading |
| /spt releasecombatlock | Turn off the combat lock early |
| /spt discount <id> [amount] | Sets the discount of a product |
| /spt openguifor <username> | Opens the GUI for a user |
| /spt preview | Previews your trade list |
| /spt priority <id> [amount] | Set the priority of a product |
| /spt deposit <id> | Deposits the item you are holding in your hand into item storage for a product |
| /spt withdraw <id> [limit] | Withdraws at most limit of a product's item storage |
| /spt collect [id] | Collect all or just a specific product's earnings |
| /spt hidewhenout <id> <yes|no|true|false> | If the item should be hidden when out of stock or shown as out of stock |
| /spt all | See all available trades |
| /spt purchaselimit <id> [limit] | Set purchase limit |
| /spt purchasereset <id> | Resets purchase count for purchase limit |
| /spt unlimitedsupply <id> | Admin option to toggle if unlimited supply is enabled for an item |
| /spt reload | Reload the plugin's configuration |
The /spt create command works by chaining together a bunch of options. The first option is the product you wish to sell, you can either hold the item in your hand and leave out this option, or specify the item and optionally the amount.
The other options can occur in any order and are the following:
| Option | Description |
|---|---|
amount <amount> |
Amount of product is being sold. |
cost1 <cost> [amount] |
Cost of the product. |
cost2 <cost> [amount] |
Secondary cost of the product. |
hidden |
Hide the item from the trade menu. |
disabled |
Display the item as not for sale in the trade menu. |
discount <amount> |
Apply a discount to the item. |
priority <priority> |
Controls the order the item appears in the trade menu. |
purchaselimit <limit> |
Limit how many times the product can be purchased. |
hideonoutofstock |
Hide the item when it goes out of stock. |
deposithand |
Deposit the item you are holding in your hand (if it matches). |
unlimitedsupply |
(Admin only) Set this item as having an unlimited supply. |
player <player> |
(Admin only) Create this item for another player. |
As an example, to sell a grass block for 2 diamonds, 3 emeralds, with a discount of 1, the command would be:
/spt create grass_block
cost1 diamond 2
cost2 emerald 3
discount 1
(Spacing added for readability, the command would look like this: /spt create grass_block cost1 diamond 2 cost2 emerald 3 discount 1)