Key features
- Global and region shop. Sell to everyone or create a local shop where only items from the owners of a specific region appear.
- Trades. Exchange items for other items without using coins.
- Secure offline economy. If someone buys your item while you are disconnected, you automatically receive the money in your inventory when you rejoin.
- P2P offers. Send direct offers to other players. They expire in 10 seconds by default, and the admin can change it.
- Multi-language. Built-in Spanish, English and Portuguese (
/shoplang).
Permissions and commands
| Command | Permission | Description |
|---|---|---|
/shop [page] |
terrashop.shop |
Displays the list of items for sale. |
/buy <number> |
terrashop.shop |
Buys the item at that index in the shop. |
/buy |
terrashop.shop |
Accepts a direct (P2P) offer from another player. |
/sell <price> [player] |
terrashop.shop |
Sells the item you are holding. |
/trade <item> [qty] [player] |
terrashop.trade |
Trades the item in your hand for another item. |
/shop clear |
terrashop.shop |
Removes all your items from the shop and returns them to you. |
/shoplang <es/en/pt> |
terrashop.shoplang |
Changes your personal plugin language. |
/shop region add [name] |
terrashop.region |
Turns a TShock region into a local shop. Inside the region, /shop add is enough. |
/shop region delete [name] |
terrashop.region |
Removes the shop from a region. |
/shop time <time> |
terrashop.time |
Changes the expiration time in the global shop (12h, 30m). |
For region commands, the player must also have build permissions (owner or shared) in that TShock region.
Usage examples
Prices use c (copper), s (silver), g (gold) or p (platinum).
Selling and buying with coins
/sell 50glists the item in your hand in the global shop for 50 gold./buy 1buys the first item on the/shoplist.
Making a trade
/trade 9 100asks for 100 Wood blocks (ID 9) in exchange for the item in your hand./trade "Iron Broadsword" 2asks for 2 Iron Broadswords. Use quotes for names with spaces.
Direct player offers
/sell 1p Jack7w7offers the item to Jack7w7 for 1 platinum./trade 9 5 PakeMPCoffers your item to PakeMPC in exchange for 5 wood.
The other player has 10 seconds (default) to type /buy, or the offer expires and your item comes back.
Region shops
- Stand inside a region you created (
/region define MyShop). - Type
/shop region add. - Anyone who enters that region and types
/shopwill only see items listed by the owners and members of that region. Players passing nearby get a chat notice that they are entering your shop.
Configuration
shops.json is created automatically in your tshock folder and can be edited while the server is off:
DefaultLanguage: base language for new players (es,en,pt).DirectOfferExpiration: time limit for direct offers and trades (30s,5m,1h).ExpirationMinutes: minutes before an item expires in the global shop.