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
Question, what would be the permission for players to open a shop by npc, I see a create and a remove, but not a use. ??
Is it Possible to add Token Feature instead of EXP & Money?
Great, I look forward to the addition.
:)
@Mistermastermine
There is currently no "item" pricetype setting, I'll add it to my to-do list for the next release.
Thanks for your feedback :)
Well I love the way you have set this up, much more user friendly then the others I have looked at.
But I do have one problem, I don't see a item pricetype choice.
My server is attempting a gold currency system. I'm I just missing it? But really great job on what I do see.
@augustboland
Try it without a blackslash "/"
@Xdecupl0r The items.yml is a default configuration which will be generated each time if it couldnt be found. Just delete the entry "Items" from your config.yml. The Items.yml will still be there,but not loaded into the shop list.
@ryan_the_leach Ty, but this is a server shop. I do not plan to add player shops.
@huntershenep Thank you. Check this site: http://jd.bukkit.org/rb/apidocs/org/bukkit/enchantments/Enchantment.html If it doesnt work with these enchantment names, please reply again :)
Very nice! I am not able to add Protection enchantments to items :/ , same with unbreaking.
This seems great, my only wish is that it supported player shops.
thanks for the pugin but I tried to make it run a console command to give a kit like this /battlekits defaultII %player% but it did not work how should I do it instead
@crysis992
Ok thanks, but i also have some questions : why items.yml is respawning everytime when i try to delete it ( because i don't need it anymore ) ? And to finish, can i put the id of the item like 98 for stonebrick or i have to do it like that everytime : "Log:3" ?
@Xdecupl0r
I will look into this issue as soon as I'm at home which will be this weekend. It should work fine, maybe just a simple configuration error? Make sure to check your configuration again and check the example pages above. If it doesn't work, i will try to help when I'm back at home.
@crysis992
thats the thing I get no errors
Hi Crysis992 i got a problem with this plugin, in fact it seems that the only file which is working is Items.yml others aren't working.. When i do /shop and i click on "Items" with the Wood ( default config ) it works while when i change the name in "Wood" in config.yml it doesn't work. Moreover, others aren't working at all when i click on them nothing happen. The first time i downloaded the latest download ( i guess 1.4.2 ) but i still had the problem so i tried with the 1.4.1 but it still doesn't work..( i'm currently using the 1.4.1 version )
In my log i got things like that :
"[19:02:10 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:427) [craftbukkit.jar:git-Spigot-1168] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit.jar:git-Spigot-1168] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [craftbukkit.jar:git-Spigot-1168] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) [craftbukkit.jar:git-Spigot-1168] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1360) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.a(SourceFile:32) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.handle(SourceFile:10) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:647) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:530) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:442) [craftbukkit.jar:git-Spigot-1168] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Spigot-1168] Caused by: java.lang.NullPointerException at com.avalon.servershop.InventoryClick.ShopClickEvent(InventoryClick.java:58) [?:?] at sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_03] at java.lang.reflect.Method.invoke(Method.java:601) [?:1.7.0_03] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) [craftbukkit.jar:git-Spigot-1168] ... 14 more"
Thanks
Please Make Permissions For /shop
@augustboland
Do you have Citizens installed? Does it give any errors on the console? Did you check the startup logs if it detects Citizens? Any more info than "it doesnt work" would help alot, i cant help you without more infos.
@crysis992
I did use the latest version but the command still seems to do nothing for me
@crysis992 Ah, thank you. Very helpful page!
@Delta249er Try "HARD_CLAY"
Check the official Bukkit documentation for a full list of possible Material names:
http://jd.bukkit.org/beta/apidocs/org/bukkit/Material.html
Plugin works great overall, very nice job!
I can't seem to get Hardened Clay in my shop. I've tried setting the "Reward" to "hardened_clay," "Hardened_Clay," "Hardened_clay," and "172," but none of them seem to work. Any ideas?
@Venusaur
Hmm do you use the latest version? Did you let the plugin re-create the messages.yml? (Delete the messages.yml before you start the server, if you upgraded from a lower version)
About npc support:
I'm still working on it, but the npc should spawn if you use the command from the project description.
Remember: The latest release is a beta version, It's not fully tested and may not working like expected.