FancyShop
FancyShop
Create chest shops that trade in physical currencies. Now with 1.8 support!
github.com/DeltaWhy/bukkit-fancyshop
Features
- Create chest shops with a graphical interface.
- Use in-game items as currency.
- Buy and sell any item - enchanted items and books, potions, even items with lore or custom NBT data.
- Buy and sell up to 27 different items in a single shop.
- Shops are protected against damage and against stealing with hoppers.
- Create admin shops that can buy and sell an unlimited number of items.
- Restrict shops to certain regions (depends on Flags).
Commands
/fancyshop: Create and manage shops. (Aliases: /fs, /shop) /fancyshop create - Create a new shop. /fancyshop remove - Remove a shop. /fancyshop rename <name> - Rename a shop. /fancyshop setadmin true - Make a shop an admin shop. /fancyshop setadmin false - Make a shop a normal shop. /fancyshop currency <name> - Add the currently held item as a custom currency.
Configuration
See Configuration and Region Support.
This plugin uses Hidendra's PluginMetrics which sends some anonymized data about your server to mcstats.org. This data includes the plugin and server versions, the server's Java version, the number of online players, the OS version, etc. If you want to opt out you can do so by editing plugins/PluginMetrics/config.yml and changing opt-out: false to true.
Usage
To use a shop, just right-click its chest. You will see a menu of the shop's offers.
To buy an item, click on it while holding currency matching the 'Buy' price. To sell an item, click on the offer while holding that item.
To set up a shop, type '/fancyshop create' and then right-click a chest.
You'll see the 'Manage Shop' menu - to add an offer click on an empty slot while holding the item you want to buy or sell.
To set the price, click that item while holding your desired currency. The wool icon in the bottom right tells you whether you are changing the buy or sell price. Click it to switch. Don't forget to add the item you are selling (or the currency you are buying it with) to your chest. Right-click the chest while sneaking to open it normally.
To remove an offer, click the fire icon in the 'Manage Shop' menu, then click it.
Shops are automatically protected against damage and theft. To break a shop chest, first remove the shop by typing '/fancyshop remove' and right-clicking it. Then you will be able to break the chest normally. These protections can be disabled in config.yml.
Why another shop plugin?
I'm not a fan of economy plugins. While they might make things simpler on large servers, they don't seem very Minecraft-y to me. They add a layer of abstraction that I feel takes away from the survival aspects. However, I like having shops - they give players more choice where to spend their time. If you don't want to spend time mining cobble or building a big farm, you can buy them from someone who does. So I wanted a shop plugin that can use in-game valuables rather than creating an artificial currency.
Why not use GoldIsMoney, Gringotts, etc.?
Because I don't want to inflate any one item (gold, emeralds, diamonds, etc.) by making it the sole currency. On my small whitelisted server, I don't need world protection or other plugins that need Vault compatibility.
Permissions
fancyshop.create: description: Create a shop. default: true fancyshop.create.anywhere: description: Create a shop, bypassing region permissions. default: op fancyshop.rename: description: Change the name of your shop. default: true fancyshop.use: description: Use other people's shops. default: true fancyshop.remove: description: Remove someone else's shop (you can always remove your own) default: op fancyshop.open: description: Open chests for other people's shops. default: op fancyshop.setadmin: description: Create unlimited (admin) shops. default: op fancyshop.currency: description: Add custom currencies. default: op
We were using FancyShop for about a week. Every time I tested a shop they seemed to be working fine, but I noticed at least one of my chests was selling stuff, but there wasn't any currency for me to collect. The inventory depleted, and players said it was taking their money. So I emptied the chest, and then used the /fs remove command. The chest immediately duped all the stuff I had just removed. I went around and was able to dupe stuff in every shop I had set up, by emptying the shop, then using /fs remove. It was about 8 shops in all. I am using Spigot, and the only plugins are Simple Backup and Giants. The only thing I can think of regarding my testing (mentioned in previous post) is that all of these chests would have had the server restarted after they had be created. ???
Well, I tried to do what I thought I did, and I have been unable to repeat my results. It was my very first shop I set up (and removed). I've now removed 4 or 5 shops without duping anything.
@HarveyElder
Wasn't able to reproduce this. Can you get a screen capture of it happening?
We are trying FancyShop on our small server. It looks like it will suit us well. I've encountered a bug. I set up my first chest shop full of food just to test FancyShop out. Later I removed all the inventory, moved it to a different shop, and then used the remove command on the empty chest to cancel that first shop. After using the remove command the chest was no longer a shop, but it was also no longer empty. All of the stuff that had been in it a few minutes earlier was duplicated.
I'm looking forward to this. I have the same opinions about economy shops. This is a very "minecrafty" idea.
Very much looking forward