TradeShop
TradeShop is a plugin that will allow you to transform a chest into a shop that uses a barter system, rather than a traditional economy system. With the help of a few simple commands you can create a shop from a chest and add trade equivalents and quantities to the shop. The "trader" interface will be the same as seen when trading with a villager.
Usage
Command | Description |
/tradeshop create | Use the command and left click on a chest to create a new TradeShop. The chest must be an empty single width chest. |
/tradeshop add <Buy Material> <Quantity> [Buy Material] [Quantity] | Use the command and right click a TradeShop and then left click and item to sell, using the second optional Buy Material if desired. (Use_Underscores, not spaces) |
/tradeshop admin | Use the command to access the inventory or destroy a TradeShop that does not belong to you. Use the command again to return to normal mode. |
To remove a trade or currency: Open the TradeShop chest and left click the item to remove.
To destroy: Simply destroy the chest.
To trade: Simply right click a TradeShop Chest
Alias: Use "ts" instead of tradeshop
Permissions
Permission | Description | Default |
tradeshop.user | Allows a player to create a TradeShop | Everyone |
tradeshop.admin | Allows a player to use /tradeshop admin | Operators |
Example
First you need to create a TradeShop. To create a TradeShop, issue a create command and then left click an empty chest you want to turn into a TradeShop.
TradeShop inventories are locked to everyone except the owner, and those with special permissions. Those who can access the inventory will be limited to actions they can perform. You can not split or drag split items in the TradeShop. You can remove items from the TradeShop at any time; however if the item is attached to a trade, that trade will automatically be cancelled. You can only add items to the TradeShop if identical items exist in the slot you are placing it in or if if you have entered "add mode". To enter add mode, perform the follow command:
This command would create a trade buying 2 Emeralds. You would then have to stock the chest with the item you want to sell.
The next step would be to add the item you want to receive in the trade (including amount) to the chest. Adding these leather leggings will create the trade 1 Leather Leggings for 2 Emeralds.
The command issued above, and stocking the chest above with leather leggings, would create this trade. Items will still need to be stocked in the chest, or the trade would only be available once (because there is only one item stocked).
Putting 8 books in the chest would create a trade selling 8 books for 2 emeralds. After placing these initial books, you would have to stock the chest with more books so that the shop has books to trade for. Removing ALL the books from the chest would delete the trade from the TradeShop.
Flags support
Flags support is optional, if Flags is installed, the following player flags will be available and obey trust lists.
Flag | Description | Default |
TSAllowCreate | Allows the creation of a TradeShop in an area. | Owner/Trust List only |
TSAllowTrade | Allows players to use TradeShops. | Everyone |
Other great plugins by Alshain01
- Flags - Change game behavior in defined areas.
- RocketTeleport - A fun way of transporting players from one place to another.
- PetStore - Manage ownership of tameable animals.
- HardcoreClaims - Grief Prevention extension that removes a claim when a player dies.
- NoMoreZombies - A small plugin developed to disable zombies spawning more zombies.
Discussion Forum
In order to provide more centralized and effective means of feedback and support for my growing list of plugins, a new Discussion Forum has been created. You don't even need a new account to use it! This forum is exclusively for plugins by Alshain01 and discussion of their use and development. For other concerns, please consult the Bukkit Forums.
i cant do trade shop
``You dont have permission to create TradeShops!
@mr_T_creations
Sorry to disappoint. I'm afraid this project never materialized. We ran into issues with the API (rather the lack of API) regarding the trade screen and villager interface and sadly it doesn't look like it will ever come given the current state of the Bukkit team. I'm afraid this one just died on the vine.
I can't wait for this to come out!
Update: For anyone who has seen this and is watching for it to be released, we found there is simply no way to do what we want currently in the API. However, the good news is there is a developer (not related to this project) who has chosen to add what we need and it is mostly done. So for this reason the plugin is on a indefinite hold, which hopefully won't be too much longer.
@Joager
You bring up a good point. We are still in the early stages of the plugin but I think we are going to have to re-think the interface a little. Our current design wouldn't work with enchants or lores because it's asking for a raw material. I'm ok with that for the item your buying (most likely be gems and ores and other raw materials anyway), but you should be able to sell items with Meta. Gonna have to think about how to accomplish that one, thanks for pointing it out. Sabre and I will talk it over and see if we can refine the plan a little.
Anything on selling items with lores?
Also, would love you guys forever if there was a command that instantly generates a chest with a shop inside (you would still have to put the items in, tho).