CurrencyShop
What is it?
CurrencyShop adds shop system that uses items as currency :)
How does the trade work?
- You should have some coins (item type for coins can be modified, for default it's a flint) in your inventory;
- then, click on the custom villager (created with /ccs spawnvillager command) - the main shop menu will appear;
- choose if you want to buy or sell some stuff;
- so if you buy an item (for example it costs 2 coins), you should have 2 coins in your inventory to buy it. Otherwise, the plugin will warn you that you don't have enough coins to buy that item;
- and if you want to sell some items, easily click on the item in menu and the certain amount of coins will be added to your inventory :)
How to install CurrencyShop
- Download CurrencyShop plugin and move it to /plugins folder.
- Reload / start your server.
- Modify config values as you like.
- Type /ccs reload. That's all!
Download
Changelog
- 1.2.0
- [+] Added new config value: MESSAGE_CANT_BUY.
[-] Removed shop config value because it's not used in newest versions.- bugfix #5: Removed bug with subtracting all item stacks when buying an item.
- bugfix #6: Removed some bugs with /ccs shop change command.
- bugfix #7: Removed bug with getting items from shop menu through clicking with item on them.
- 1.1.0
- [+] Added ability to create custom villagers!
- [+] Added ability to add items with custom enchants!
- [+] Added command /ccs create <name>.
- [+] Added command /ccs edit <name>.
- [+] Added command /ccs traders <name>.
- [+] Added command /ccs remove <name>.
- [+] Added command /ccs shop set <id> <name>.
- [+-] Completely changed menu and command system
- bugfix #4: removed bug with changing traders' names.
- 1.0.2
- [+] Added /ccs shop list, /ccs shop add, /ccs shop remove and /ccs shop change commands!
- 1.0.1.5
- [+] Added new config value: ignore_sell_menu_item_display_name and ability to change it in game
- [+] Added config values to manage messages for player
- [+] Added ability to use commands from console
- [+-] Completely changed sell triggered function, it was too buggy :D
- bugfix #1: the generated shop was ignoring data values
- bugfix #2: changing currency item type wasn't working for buy and sell menu
- bugfix #3: fixed problem with empty slots
- 1.0.0
- First release
@BenXin
It's been a long time from the time I've been working on this plugin. Please paste me here your plugin version, config and your server version :)
The plugin works fine and its quite good! but i have a problem whenever i buy or sell something i dont get the items in my inv. any solution?
@lukaap
I did it! You can download latest version from here :)
@lukaap
Hi, it's not possible to do it for now, but I can do it as a request :)
Hi, Is there a way to add items to the shop that you have in your hand? This way users can easily add enchanted/renamed items to shops.
@Anemul
Of course you could! I was thinking about this feature several days ago and it seems like it's time to do it :P
@PDKnight
Not allot I can say really , no errors in the log , it just didn't seem to work . Nothing in the config . I would like to take this opportunity to aask for another feature . Could we have individual Shops/trader , with their own inventory and currency ?
@Anemul
Thanks! Anyway, can you please tell me more about your bug with title name, please? :)
The new version is awesome and works nicely . My granddaughter is happy . The add item command is just what this plugin needed , good job . The only thig I found off was the shop title name did not seem to work . Not a biggy at all . 5 out of 5 stars now . /thumbsup
@Anemul
Version 1.0.2 is out!
It's not approved for now, butYou can download it from here. :)@PDKnight
Commands would be awesome .
Well, nice idea, but I would make it in the 'command' way, because it's a bit advanced to do it in 'drag&drop' one (if I understood right) :/
Totally missed that , sorry it was late for me .
Yeah , that way we wouldn't have to edit the config file to add items and set prices or even some in game commands to do this would be great . The way I read your in game commands there is no way to do this currently . Drag and drop means to drag an item to the shop and drop it in and set a price from the gui .
@Anemul
Thank you for the feedback! You can see this line above that answers your question:
#shop: 'id:type|amount|buy|sell|item name (optional)'
So the second number is amount of item, third is buy worth, fourth is sell worth and last is item name.
What do you mean with "Drag drop for placing items to sell would be awesome"?
good idea and it works pretty good so far . Although I'm not at all sure what all the numbers are for the config : '1:0|1|2|1|&lAwesome STONE!'
I understand 1:0 and I think the thrid number over is price , but what are the others ?
Drag drop for placing items to sell would be awesome .