ServerShop-gui
ServerShop-gui is a shop system. It allows players to buy item from a defined item list. It uses a Inventory to display the shop GUI. This plugin requires latest version of Vault, other than that, just drop it in plugins
(make sure you have Vault plus a supported economy plugin installed)
WARNING: BECAREFUL WHEN SELLING COMMANDS OR PERMISSIONS IF YOU MISS SPELL A PERMISSION NODE AND ADD ONE THAT DOESN'T EXIST, THE PLUGIN WILL RESET YOUR ITEMS.YML, SO HAVE A BACKUP OF YOUR ITEMS.YML
Features
- Put any Items you want in the Shop
- Configure Amount and Price
- Lightweight and simple to use Plugin
- Open the shop either with a right click on a defined Item or a command
- Multiple Shops
- Highly customizable
- Purchasable permissions nodes
- Purchasable player commands
- Purchasable console commands
- Custom Lore
- Enchantments
- Custom display names
Support&Questions
If you have any questions/bug reports or feature requests. Please click on Tickets on top, and create a new one.
Thanks.
Usage
- The Interface(GUI)
- This is a display of all current Items, you click an item to buy it.
Video Tutorial
Thanks to VariationVault for the Video (The video might be outdated)
Metrics Statistic Collection
Metrics is used to collect plugin statistics. Only data such as plugin version and players online is collected. If you do not wish for this data to be collected, disabled the feature in your config.yml (EnableMetrics = false)
stock:
'0':
Type: Item
Reward: Wood:1
Displayname: This is a custom Item name.
lore:
- 'Look a '
- fancy lore
- '&ccan &abe &fadded :)'
Pricetype: Money
Price: 25.0
Sell: 5.0
Amount: 9
'1':
Type: Item
Reward: Stone
Pricetype: Money
Price: 40.0
Sell: 19.5
Amount: 9
'2':
Type: Item
Reward: Diamond_sword
Displayname: Sword of Fire
Enchantments: FIRE_ASPECT:3;KNOCKBACK:40
Pricetype: Money
Price: 25.0
Sell: -1
Amount: 1
'3':
Type: Item
Reward: Mob_Spawner
Pricetype: Money
Price: 500.125
Sell: 0.0
Amount: 1
'4':
Type: Item
Reward: Lever
Pricetype: EXP
Price: 5
Sell: 1
Amount: 64
'5':
Type: Item
Reward: Apple
Pricetype: Money
Price: 0
Sell: 0.0
Amount: 20
'6':
Type: Command
Reward: Wood:4
Pricetype: Money
Displayname: Wood Reward
lore:
- '&eThis is a new Feature '
- '&eIt will run multple commands'
- in this case give and a say announce!
Command: give %player% wood 64
Price: 50
@ClashNetwork
If you use a 1.7.2 client update to 1.7.4. This is a client side bug and cannot be fixed plugin side.
@beefzilla
Its not usable because they player does not get the items they pay for. It just disappears.
@ClashNetwork
nah its still useable, it is just an annoying bug, 1.7.4 minecraft is compatible with 1.7.2 so just use a 1.7.4 client if it bothers you that much and it should be fixed then
@beefzilla
Ok, well there are no builds out for 1.7.2. SO, how could we fix it, until then its unusable?
@ClashNetwork
that was a bug in minecraft 1.7.2 itself. it is fixed in 1.7.4
@crysis
So that is a plugin problem, no mine! YYEYYE
Is there an option to create a next page button in a shop? If so how do I use it? Many thanks, SuperiorCommander
@theapple641
Okay, i will look into the issue for the next release.
@ClashNetwork
I will look into this issue.
Still Have Error. No Be In My Whole Config.
Any idea how to fix the "Ghost" item? it seems that this plugin is broken. It gives you the item you pay for but once you attempt to use it, the item disappears.
It does not give any errors, just fake items...
Hello, What do I put in the reward section of a shop for Stone Slabs? Many thanks
@theapple641
It must be a config error in one of your shop configs.
Try to search for the word "be"
java.lang.NumberFormatException For input string: "be"
The plugin is trying to convert "be" to a number. So "be" should be a number(integer) in your config. Maybe you did a mistake with your price settings?
@rnoa Inside each shop config, there are category numbers like '1': , '2': etc.
These are the inventory positions. Try to start with 0,1,2,3 etc.
Acutally the ID is now the inventory position.
@SkymuraiPvP Make sure you don't have the plugin loaded twice. I did a small mistake while uploading the file to bukkit.
I uploaded it as "ServerShop.jar" but the last version as "shop.jar"
Cause if you check your error log, it says version 1.4.1 but latest version is 1.4.2
Hi! When I updated to 1.4.2 all the shops in GUI and items in the shops got displaced 1 inventory cell to the right, leaving the first cell empty. I hadn't changed anything in the config except regenerating the message file as it was said. What did I do wrong? I had to go back to the previous version and everything is ok again. What am I missing?
@crysis992
Yes, the newest beta. Also with the previous 1.7 release, I can't seem to get the GUI's working. But sometimes they do, sometimes not.
http://pastebin.com/8A5ih5iG
Here is the link!
All inside!
@Mistermastermine
My bad, forgot to add this permission to the project description. Its "shop.npc.interact".
@epic_ninj4 Wrong Command usage, read the project description again.
@theapple641 Looks like a issue with your configuration file. Paste your config to pastebin.com and give me the link.
Please post Errors/Log only via pastebin.
@SkymuraiPvP Which version are you using? Your error is pointing me to a empty line in the latest beta version.
What economy plugin that your plugin supports.
I use Craftconomy3
When i want to sell. It take my items but not add money to my balance.
It show this on console:
=======
[19:22:37 ERROR]: Could not pass event InventoryClickEvent to ServerShop-GUI v1.4.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:486) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:471) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1361) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.a(SourceFile:32) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.handle(SourceFile:10) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
Caused by: java.lang.NumberFormatException For input string: "be"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1241) ~[?:1.7.0_45]
at java.lang.Float.parseFloat(Float.java:452) ~[?:1.7.0_45]
at com.avalon.servershop.SellHandler.Sell(SellHandler.java:107) ~[?:?]
at com.avalon.servershop.InventoryClick.ShopClickEvent(InventoryClick.java:100) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_45]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_45]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-49-g17d057c-b3018jnks]
... 13 more
What am I doing wrong? http://pastebin.com/evzvbhsx
This plugin is broken. It gives you the item you pay for but once you attempt to use it, the item disappears.
its like a ghost item.
i was using the command /shop npc create Items Items
with the default shop and command on my rank but it didnt work.
any help thnaks