QuickShop
QuickShop
The Predecessors
Showcase was abandoned. Chestshop needed a display, with signs whose order you could never remember. SCS has too many commands. I'm yet to find someone who uses essentials shops.
Don't get me wrong though, they're all awesome plugins each in a few ways.
QuickShop
So, I set out to write this. QuickShop. QuickShop is a shop plugin, that allows players to sell items from a chest with no commands. It allows players to purchase any number of items easily. In fact, this plugin doesn't even have any commands that a player would ever need!
Features
- Easy to use
- Togglable Display Item on top of chest
- NBT Data, Enchants, Tool Damage, Potion and Mob Egg support
- Unlimited chest support
- Blacklist support & bypass permissions
- Shops that buy items and sell items at the same time are possible (Using double chests)
- Herochat support
- Checks a player can open a chest before letting them create a shop!
No longer accepting feature requests
For those people that hate reading, here's an awesome video from UltiByte:
A more up to date and informative video can be found here
Installation Guide:
http://www.youtube.com/watch?v=eJsv7fqaXNk
How to Create a Shop
- Place a chest on the ground
- Hit the chest with the item you want to trade
- Type in price for the item (As prompted) in chat
- Fill the chest with the items you wish to sell
Advanced
- Face the chest
- Type either /qs sell or /qs buy to make the shop buy/sell instead (Optional: use /shop instead of /qs)
- Stock the shop accordingly, if necessary.
How to Buy/Sell to a Shop
- Find a shop
- Hit / Left click the shop
- Enter the amount you wish to trade in chat
Menu Example:
See it in action:
http://maxgamer.org or
play.maxgamer.org:25571 and /warp market!
Commands
- /qs unlimited - Makes the shop you're looking at become unlimited.
- /qs setowner <player> - Changes shop owner to <player>.
- /qs buy - Changes your shop you're looking at to one that buys items
- /qs sell - Changes your shop you're looking at to one that sells items
- /qs price <price> - Change the price of your shop that you're looking at
- /qs clean - Removes any existing shop that has 0 stock.
- /qs find <item> - Use to find the nearest shop that begins with <item> - E.g. '/qs find dia' will find the nearest diamond shop.
- /shop - Alias (Optional) of /qs
Player Nodes
- quickshop.use - Required to use ANY quickshop
- quickshop.create.sell - Required to make a QuickShop (At all)
- quickshop.create.buy - Required to use /qs buy (Change the shop type from Sell -> Buy)
- quickshop.create.double - Required to make doublechest shops.
- quickshop.create.changeprice - Required to use /qs price (Ability to change the price of a shop without destroying it. This may allow for some scammers to quickly change the price while someone is buying.
- quickshop.bypass.ItemID - Required to sell blacklisted items (E.g. bedrock)
- quickshop.find - Required to use /qs find <item>
Admin Nodes
- quickshop.unlimited - Required to use /quickshop unlimited
- quickshop.setowner - Allows use of /qs setowner
- quickshop.other.destroy - Allow breaking other peoples QuickShops if they're locked by this plugin
- quickshop.other.open - Allow opening (And stealing/Stocking) other players QuickShops
- quickshop.other.price - Allow changing price of other people's shops
- quickshop.refill - Ability to refill chests using a command (=Unlimited items)
- quickshop.empty - Ability to empty chests of all items
- quickshop.clean - Permission to purge any shops that have 0 stock.
Source: Source on Github
Checkout the config over here.
Have Towny?
Try out this plugin http://dev.bukkit.org/server-mods/quickshop-towny-interop/ to stop players creating shops outside of Towny shop plots!
Calculating Economy Prices
Vagrant326 has created an Excel spreadsheet that allows you to calculate prices for a market, if you're looking to set one up! It takes a few minutes to setup the basic material prices, and once done, will tell you the appropriate value for almost any material! http://www.planetminecraft.com/blog/how-to-create-stable-prices-system-on-your-server/
Hi, I'm an 19 year old University student studying Software Engineering. I spend my time writing code that I receive practically no reward for other than people asking questions I've answered a hundred times before. I know server Admin's and Owners aren't the richest of people - But if you're feeling particularly generous, I always appreciate any amount for the time and patience I put into coding Bukkit plugins.
Latest version of quickshop generating this error when anyone tries to interact with anyshop
[SEVERE] Could not pass event PlayerInteractEvent to QuickShop
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:114)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:547)
at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:298)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.NumberFormatException For input string: "�"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.valueOf(Unknown Source)
at com.iCo6.util.Common.formatted(Common.java:124)
at com.iCo6.iConomy.format(iConomy.java:503)
at net.milkbowl.vault.economy.plugins.Economy_iConomy6.format(Economy_iConomy6.java:110)
at org.maxgamer.QuickShop.Listeners.ClickListener.sendShopInfo(ClickListener.java:194)
at org.maxgamer.QuickShop.Listeners.ClickListener.sendShopInfo(ClickListener.java:156)
at org.maxgamer.QuickShop.Listeners.ClickListener.onClick(ClickListener.java:101)
at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
... 16 more
@vitorsk0m
Fixed. Will release 2.2 sometime soon
@vik
Ah, I missed something in the messages.yml or renamed something rather and forgot part of it.
You'll want to go to your config and add player-just-boughht-from-your-shop: "{0} bought {1} {2} from your store!" or something like that.
Ill fix it in v2.2 (2.1 is already awaiting approval)
Hey I've been testing this plugin on my new server it I really like it. Way more simple than others that i tried.
I'm just having one issue.
Installed plugin normally and I didn't change anything from the config files so it's all default.
What could be causing that?
@Sylar6281
Get lwc. It's a simple unlock/lock plugin. You can choose whether to allow locks on doors and stuff too.
Well I don't know about "people" but I want it lol :P Plugin's a bit hit on our server. We've gotten around it, kinda, with worldguard but people can still place chests in other players' shops. We just have to police it a bit, not a big deal. Maybe it can get slipped into some future update.... :D Enjoy your trip!
@Sylar6281
I've considered this but didn't think anyone would really want things to go this far. But if people want it, I can code it in time.
I'm going away for a week tonight though.
@netherfoam: Thanks for the reply! The towny: true worked fine but I have a question. Is there anyway you can add support for embassy plots? What I've done is setup embassy plots at our world's spawn so players can claim them and setup shop at spawn. But it's not recognizing the claimed embassy plot as their turf. Thank you for any assistance you can offer!
thise was whate ay want to say some as him XP sorry for grammer aym dutch @netherfoam: Go
How about left click with the item being sold as the trigger to sell to the chest. If the owner of the shop does this, it prompts for the price per unit. If antone else does this, it prompts for the amount to sell
Just a thought. I Will certianly try this plugin on my server. thanks for your efforts
My bad, i mean towny: true to it :). I cant edit posts from my ipad. Crapple.
@sylar
Ah quite true, not sure how i forgot to put that in the config. You should just need to add towny: false to it, the code is already there to check the town. Thanks!
In the plugin notes at the top it says that it integrates with towny, but I"m having a problem with people creating chests in towns that aren't their own. In the config I have the following options:
plugins: preciousstones: true worldguard: true lockette: true griefprevention: true residence: true
Do I just need to add towny: true? Or is that feature not in the plugin currently? Thank you for your help!
@Beaupedia
I've fixed this in the next version. Whenever I release that, we'll see.
Thanks Beau!
Ill have to update the permission nodes, the commands dont show if you dont have permission. The command is /qs price and the permission might be quickshop.create.setprice - i havent documented it on devbukkit yet though.
"Command for changing shop price"
Having trouble finding what the command is and if there is a permission that goes along with it.
Thrilled to see this feature added though, and looking forward to using it.
Also, sent a small donation your way. Thanks for your hard work.
@senne97
ay = I? 9 of 33 words spelled or used incorrectly. That's 73% accuracy.
C- on your single, run-on sentence!
@senne97
No idea what you're talking about.
@EdwinRophe
Not a bad idea, I'll sit on it for a little and plan it out.
@netherfoam: Go
ay now have made the chop to buy stuff but ay have all the items of minecraft in it bt if ay whant to sell do ay need to make the chops agen ?
@netherfoam
How about left click with the item being sold as the trigger to sell to the chest. If the owner of the shop does this, it prompts for the price per unit. If antone else does this, it prompts for the amount to sell
Just a thought. I Will certianly try this plugin on my server. thanks for your efforts
@deleted_7536780
EVERY other plugin out there has you hitting the sign.. for that exact reason.. you can both left and right click a sign.
That's the point of this plugin. To make it simple, and exactly what you'd expect. The stock is stored inside the chest. Why would you interact with the sign? Besides. Clicking the sign as it stands, also brings up the menu.
Also why does this plugin message you every time you hit any chest.. surely it would be better to crocuh click to set up a shop...
Read the config before you ask these kinds of questions.
I think it would be better to shift click to setup a shop.. left click sign to buy.. and right click sign to sell.
Again, right click = open chest. My server is a PvP raiding server, and we don't want players locking chests by making them shops. That is why locking shops is toggleable in the config. Which means, that right click can't be used as buy, because it's the action to open the chest.