GUI Shop
This plugin is the ultimate solution to all the signs, the chests, the glitches. This plugin will put a stop to all those head aches. I present to you, GUI shop. This plugin uses a sleek new way of making shops easy, comfortable, and fun!
Having issues configuring the plugin? Look at this!
https://www.youtube.com/watch?v=EiN3OYQg6bA
https://www.spigotmc.org/resources/guishopplus-50-off.15561/
REQUIRES VAULT
If you are coming from the dev.bukkit page, Download the newest version immediatly! Errors, Dupes, and Bugs are all fixed! Enchants added too!!!
YAY! 200k Downloads on dev.bukkit & Spigot! Lets go guys!
The Big Update! A new update has been released 5/29/2015! This update Fixes ALL common reported bugs! You can also disable certain items from being sold! View the Update History to view all changes!
How to disable item from being sold?
As you guys know, A new update was released, Which allows you to disable certain items from being sold! You can do this buy:
1. Go to the item in the shops.yml 2. Erase the current value for "sell" 3. Instead of putting how much you want the item to sell for, Put "false"
E.g: sell: 400 This will let the item be sold for 400$ sell: false Item cannot be sold!
How it works:
This plugin was designed to act like a large chest. you can simply click an item in the chest to buy it, or an item in your inventory to sell it. But it doesn't use a chest. It is a completely Virtual shop that will use any economy plugin you have. As long as you have vault of course. This plugin is Sign-less, Frame less, and head ache-less. This plugin has a simple configuration that you can customize your shop with, and name your items in it! You can also access the shop by clicking a sign you customize yourself!
Configuration:
http://dev.bukkit.org/bukkit-plugins/gui-shop/pages/configuration/
http://dev.bukkit.org/bukkit-plugins/gui-shop/pages/shops-configuration/
How to install:
http://dev.bukkit.org/bukkit-plugins/gui-shop/pages/how-to-install/
Commands:
/guishop edit - Opens in Editor Mode.
/guishop price/p {price} - Set item in hand's buy price.
/guishop sell/s {price} - Set item in hand's sell price.
/guishop shopname/sn {name} - Set item in hand's Shop-Name.
/guishop buyname/bn {name} - Set item in hand's Buy-Name.
/guishop enchant/e {enchants} - Set item in hand's Enchantments.
/guishop asll {line} - Add Shop Lore Line.
/guishop dsll {lineNumber} - Delete Shop Lore Line. Starts at 0.
/guishop esll {lineNumber} {line} - Edit Shop Lore Line. Starts at 0.
/guishop abll {line} - Add Buy Lore Line.
/guishop dbll {lineNumber} - Delete Buy Lore Line. Starts at 0.
/guishop ebll {lineNumber} {line} - Edit Buy Lore Line. Starts at 0.
/guishop ac {command} - Add Command to item.
/guishop dc {lineNumber} - Delete Command by line. Starts at 0.
/guishop ec {lineNumber} {cmd} - Edit Command by line. Starts at 0.
/guishop t {type} - Sets item type.
/guishop mt {type} - Sets item mob type.
Mod Support:
This plugin now supports items from modpacks! You can use this in Tekkit ETC!!!
Permissions:
guishop.use: Allows use of /shop.
guishop.shop.[shopName] E.G guishop.slot.Ores allows use of the ores shop.
guishop.sign.use Allow usage of signs to open shop. Requires guishop.use as well!
guishop.sign.place Allow users to place signs?
guishop.sell Allow user to sell items
guishop.admin Allow user to enter creator mode
How to use:
Its quite simple to use this plugin. All you need to do is open the configuration. Follow the instructions provided within. once completed do /reload OR /shop reload. After that its simple. Do /shop to open the virtual shop. Click an item in the top inventory to buy, Click an item in your inventory to sell!
ADDED: Shift+click to buy any of one item. E.g i sell 16 stone for 1600, if i shift+click i will only get one stone for 100$. Does this for all items.
Source :
You may use this code for educational purposes or to help with plugins of your own. If this code is copied by someone, their project will be requested for removal.
https://github.com/pablo67340/GUIShop
Hi can help my ? I can not open /shop menu on 14.4.4 (Unknow command)
How to solve this Error? please help
[ERROR] Could not pass event PlayerCommandPreprocessEvent to GUIShop v7.1.5
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1633) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils$$Lambda$3359.00000000A0199E60.run(Unknown Source) ~[?:?]
at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819) [spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
at java.lang.Thread.run(Thread.java:813) [?:1.8.0_212]
Caused by: java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:617) ~[?:1.8.0_212]
at java.util.Date.<init>(Date.java:274) ~[?:1.8.0_212]
at com.pablo67340.guishop.definition.Expires.setExpiration(Expires.java:31) ~[?:?]
at com.pablo67340.guishop.definition.Expires.<init>(Expires.java:13) ~[?:?]
at com.pablo67340.guishop.definition.ItemCommand.<init>(ItemCommand.java:42) ~[?:?]
at com.pablo67340.guishop.main.Main.loadCommands(Main.java:215) ~[?:?]
at com.pablo67340.guishop.listenable.PlayerListener.onCommand(PlayerListener.java:48) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.14.4.jar:git-Spigot-94af569-6ddeb98]
... 19 more
Spigot 1.13.2 cant load the plugin...
Hey :)
This is a very nice Plugin... it works perfect!!!
But i have 1 question, how do i sell items? I mean i know how to set the price and everything but i cant open the sell menu in the game :/
Would be nice if anyone would explain it to me :)
Best Wishes
The plugin seems to work, however as far as I am aware I can't sell anything. I'm OP and server owner so I can't see it being a permissions issue (however have given myself guishop.sell) however if I left/right/shift/anything click an Item in my inventory (like an iron ingot) it doesn't do anything. I'm running 1.14.4 and using GuiShop version 7.1.5, so is this broken or am I using the wrong controls to sell?
Could not pass event InventoryClickEvent to GUIShop v7.1.5
25.08 21:17:18 [Server] INFO org.bukkit.event.EventException: null
25.08 21:17:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
25.08 21:17:18 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
Error when I clicked items in /shop
HOWEVER, Whenever i reload the server GUIShop crashes and the only way to reload/restart the plugin is with /restart. Is there a fix to this?
Great plugin! Very easy to use. Thank you!
I had a problem where players couldnt visualize the gui items for slot 1-8 but i did their permissions afterwards and works so flawlessly.
Great plugin. Works perfect on 1.14.4 Paper <3
Does the option to making selling an item "false" apply to buying items aswell? I might've missed something, but in the description it exclusively describes disabling selling. As an example, I'm currently trying to disable purchasing Rotten Flesh while also being able to sell it. If I come to the answer later I'll post a response.
Edit - After redoing the entire config to my server's store I can say that removing the option to buy an item works, but if you plan on changing anything expect to handle bugs. I had to first deal with the main config telling me that one of the store's desc. wasn't right, even though it was the same as all the others. I copy and pasted a previous one to fix that. Now I have to deal with 15 items all in a row in my first store section that are appearently wrong, only those 15. Even though every other item is the same. I don't code alot so it doesn't make sense to me, it's literally a copy paste of all the others with a different name and price.
Other than that this plugin works for 1.13.2 with no issues, I would definitely recommend it to anyone looking for this kind of comment
In reply to omercyfff:
What can I do to remove the option Buy from an item? I understand that you're not the dev but you seemed to figure a way out to remove it.
Thank you for the plugin
Sweet Berries cannot be added to the shop or it will break the category it is in, allowing players to retrieve items out of the shop as if it was an ordinary chest with ease.
If a player is trying to select a category, cant he go to that category, and he has that item in his inventory.
If that happen, the console is spammed with this:
PLEASE HELP ME
[ERROR] Could not pass event InventoryClickEvent to GUIShop v7.1.5
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:2162) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.PacketPlayInWindowClick.a(SourceFile:33) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.PacketPlayInWindowClick.a(SourceFile:10) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:13) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils$$Lambda$2643.00000000C417A8F0.run(Unknown Source) ~[?:?]
at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:135) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:114) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.MinecraftServer.aW(MinecraftServer.java:898) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:891) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:123) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:875) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:808) [spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
at java.lang.Thread.run(Thread.java:813) [?:1.8.0_212]
Caused by: java.lang.NullPointerException
at com.pablo67340.guishop.listenable.Menu.onShopClick(Menu.java:202) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.14.3.jar:git-Spigot-5e4e7f3-2349feb]
... 18 more
Is it possible to connect this to Player-run shops so a player works for the resources, fills a chest or something, links it to your shop system, and gets the money that people pay for the items instead of the money just disappearing?
In reply to mkmaster0:
Also, I'm unable to sell items.
[ GUIShop ] Enabling GUIShop v7 .1 .5
[ GUIShop ] Vault could not detect an economy plugin!
[ GuiShop ] Disabling GUIShop v7 .1 .5
------------------------------------------------------------------------------
Vault is one of the last plugins on my server to be loaded
so it could not latch onto any economy plugins until all
other plugins are loaded including GUIShop so how am i
supposed to get vault to latch onto an economy plugin
before GUIShop is loaded?
I tried reloading GUIShop in console but it reloads the
whole server.
I also tried using different economy plugins.
I don't know what to do someone help me.
In reply to sentientpug:
I had this same error. You need an economy plugin AS WELL AS Vault. I like MineWallet. It's pretty simple. Hasn't been updated in a while (Still at 1.13), but I haven't had any issues with it in 1.14.
so far it works great but i cannot sell any items can you please help?
in shop.yml this wont work? What is wrong with this
Raiding:
'1':
- id: WOODEN_PICKAXE
- slot: 0
- name: '&rSolid wooden pickaxe'
- buy-price: 200.0
- sell-price: 0.0
- enchantments: DIG_SPEED:2
- type: ITEM
'2':
- id: STONE_PICKAXE
- slot: 1
- name: '&rCursed plank pickaxe'
- buy-price: 1500.0
- sell-price: 0.0
- enchantments: DIG_SPEED:4
- type: ITEM
'3':
- id: IRON_PICKAXE
- slot: 2
- name: '&rQuick pickaxe'
- buy-price: 8000.0
- sell-price: 0.0
- enchantments: DIG_SPEED:5
- type: ITEM
In reply to milpig:
If it still doesn't work, try efficiency instead of dig speed.