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.
This is a great plugin that has worked very well for me, but recently I stopped my server to make some changes and when it started up again all the shops were gone/not working. Any idea what might have caused this?
@SeanyJo
If you install vault.
@Skaha1974
You can't, but if a shop is changed from a chest to air, then the shop will be removed sooner or later by a cleanup task... In theory.
@xXxBob
Why do people keep asking if its up to date? Not 5 comments ago I just said it works on 1.6.x...
Can you update this for 1.6.2 or will it work fine if i just install it now
Does this support craftconomy 3?
Is there a way to remove all of a players stores with a command? When a player leaves the server I would like to remove all of his stores without removing them one by one. Occasionally I remove the players store with world edit deleting everything forgetting to remove the quickshops first...then players cannot build where the quickshops were, and there's no way of deleting them because they're gone.
@netherfoam
Thanks for explaining the situation and potential exploits/dupe bugs. I'm starting to see the difficulty involved with just administering Tekkit, let alone trying to provide 'support' for it in a plugin. I may just stick with an auction plugin and call it a day....
@mrfusion121
MCPC+ Support isn't planned. You can try disable display items, that may work, but due to the MCPC+ using the obfuscated minecraft server as a core, I'm not writing code for it.
This is because the obfuscated core consistently changes with each minor version - A total pain to deal with.
The plugin will appear to work fine, but you have a dupe bug - Mobs can pickup display items, die, and then players can pickup these items. The items can also be absorbed using any mechanism that picks up items (Eg. Mod versions of hoppers, gravity rings, BC pipes).
If you do disable display items, you could attempt to place item frames on shops (Unless they're all player shops, which is not as feasible)
@Conkill
@John1074
Works fine on 1.6.x
@Conkill
Check your config before requesting a feature
netherfoam: Love the plugin. Wondering if MCPC+ support (or just a bugfix) is under consideration. As was mentioned on June 27th by another user, I am seeing the same console spam (errors) on my Tekkit 1.1.5 server using MCPC+ Legacy 617 for 1.5.2. The errors occur all the time, even when nobody is interacting with the chests, and even when the chunks are unloaded. (not 100% sure about unloaded chunks..)
As far as I can tell, everything is working properly....I just don't want my server logs to be filled with spam. If you know of a feature/function of your plugin that is actually affected by these error messages, let me know, as I'm considering leaving it in and dealing with the spam.
I would willing to assist in narrowing down the cause. Just let me know sort of information will help you. I know that the errors do not occur until within a certain range of the shops. They occur in multiple batches at the same time, and always occur on a 30 second interval.
Thank you for your time.
3:34:57 PM CONSOLE: [SEVERE] java.lang.NoSuchMethodException: net.minecraft.entity.item.EntityItem.d() 3:34:57 PM CONSOLE: [SEVERE] at java.lang.Class.getMethod(Unknown Source) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Util.NMS.protect(NMS.java:364) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Util.NMS.safeGuard(NMS.java:313) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Shop.DisplayItem.spawn(DisplayItem.java:49) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Shop.DisplayItem.respawn(DisplayItem.java:62) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Shop.ContainerShop.checkDisplay(ContainerShop.java:601) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Shop.ContainerShop.isValid(ContainerShop.java:563) 3:34:57 PM CONSOLE: [SEVERE] at org.maxgamer.QuickShop.Watcher.ItemWatcher.run(ItemWatcher.java:42) 3:34:57 PM CONSOLE: [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:58) 3:34:57 PM CONSOLE: [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) 3:34:57 PM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:759) 3:34:57 PM CONSOLE: [SEVERE] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320) 3:34:57 PM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:716) 3:34:57 PM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:600) 3:34:57 PM CONSOLE: [SEVERE] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
works fine on our 1.6.2 server
@John1074
Well you can't not until he updates his plugin
Hey running my server on 1.6.2 how can I make the plugin work on this version of minecraft?
Plz add a setting in the config to allow disabling entity spawn, entity causes lag like crazy after creating a admin shop fps drops off about 120% so it's real bad and not feasible in this regard unless theirs an option to disable entity spawning
@netherfoam
Vault yes, Economy yes (EssentialsEconomy), Using a proper chest, Shift is the sneak key, no one one the server can make one, and no errors at all D:
Ive tried everything I can think of, I am going to pull a couple plugins later to night, because at this point it sounds a lot like a plugin conflict.
@Jeebs12491
Got vault installed? Economy installed? Using a chest, not a trapped chest? Shift is your sneak key, right? Have you tried doing it with another account? Are there errors in your server.log file when you click the chest? Hmm.
@netherfoam
Yep, definitely not a permissions issue, I am unable to make one as OP, or as a standard user with the proper permission.
@Jeebs12491
Hmm, did you give yourself permissions to create shops? quickshop.create.sell
@netherfoam
http://pastebin.com/ffERiLzB
QuickShop shows up green, zero errors on start up, or when I try to create the shop.
http://pastebin.com/dhZxhpHQ
Not vanished, no silent chests, animations happen.
Here is a list of plugins, warning is extensive. http://pastebin.com/CsgYHFzD
QuickShop worked flawlessly on 1.5 under a similar setup.
@Jeebs12491
Do /plugins. Does quickshop show up red? Is vault installed? May I see your config (blank out the passwords)? Are you vanished? Do you have silent chest on, or some kind of plugin which stops you opening the chest, or stops the chest animation happening when you right click it?
@netherfoam
Sorry, thats what I meant. Doesnt seem to work at all :(
@netherfoam
Yes, I tried disabling display items but surprisingly it made no difference.
I was fairly methodical in eliminating potential sources, starting with disabling display items. That had no effect, so I went on to redstone, signs etc. Removing all QuickShops restored FPS to normal.
FPS in the area, when filled with chests, drops from 120 to 100. I can only assume the combination of chests and signs in numbers in the area contribute to the drop.
Another possible source may be LWC, although it's use is disabled in that world.