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
@theory18
It is not possible for me to completly remove it. The config option just prevents to force-register the command.
If you wish to remove it completly from my plugin, open the ServerShop.jar with WinRar or 7-Zip and edit the plugin.yml, simply remove the tokens config section from it and put it back to the .jar archive. Upload it to your server and restart.
My plugin should be fully ignore the /tokens command and it doesnt get registred in any way. But I'll try to address this issue with the next update.
I thank you for listening to my feedback of making the /tokens a config option. However could it be it's not 100% correct? meaning when i do /tokens i don't get Unknown command. Type /help for help.
I just get nothing, no error, no message..
I just came up with the idea for the store. Is it possible to make the items in the store ended? In the config line is - "ended shop" (this is example :D) - or something similar. When a player is buy a thing, he will not be able to buy this thing. (the item he buy, will not appear in the store for him after buy), and all the rest will be until he does not buy it.
Uploaded Version 1.5.2 - Waiting for approval - Thanks to madtomic for testing the development build
hot fix coming?
Could you perhaps add an option to disable the /tokens command(perhaps adding a permission node to it), because other plugins also use /tokens and i either have to use that plugin or your plugin, and i rather use his tokens but your shop.
Thanks in advance.
@crysis992 Thanks for the tip! It worked :D
@Ikillnukes
This will be fixed with the next version. Try this "hotfix":
Add the "Cooldown" value to your Command/Player Commands
Example:
'0':
Type: Command
Reward: Wood_spade
Displayname: Makarov PM
Pricetype: Money
Price: 100.0
Sell: 45.0
Command: item %player% 269
Cooldown: 0
Simply add Cooldown: <seconds> to each Command or PlayerCommand, this should fix your issue till the next version is released.
I have an issue with you script I need it for Crackshot, but for detect the ID of the items I have to use give command, because if use only Type: Item and Skip_name_check the item given doesn't change...
So, I decided to use give %player% <id>, but for some reason the console throws the following exception:
[12:53:17] [Server thread/ERROR]: Could not pass event InventoryClickEvent to ServerShop-GUI v1.5.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1365) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:157) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] Caused by: java.lang.NullPointerException at com.avalon.handler.BuyHandler.Pay(BuyHandler.java:222) [?:?] at com.avalon.listener.InventoryClick.ShopClickEvent(InventoryClick.java:79) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_67] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_67] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_67] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_67] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks] ... 13 more
And an example of a item:
'0': Type: Command Reward: Wood_spade Displayname: Makarov PM Pricetype: Money Price: 100.0 Sell: 45.0 Command: item %player% 269
Why this happens? I'm C# codder but I don't understand clearly where is the problem.. So, the only thing I can do is wait for the author to reply this...
would u add possibility to hide some item from shop gui if player already buy it?
or is there any way to display another item when player buy it? example:
on x1 y1 we have goldsword and when i buy it and open chc again its will change into diamondsword.
its this possible? or could u that that in ur plugin?
@Stainedmc
Will be fixed in the next release
@crysis992 I did find one thing that would be great if you would fix, in the messages config I don't see anywhere to change the message where a player already has a permission and they clicked on the shop item. It says "permission already assigned to your account" But you cant change the text in message config please fix thx :D
Hi guys My name is StainedMc,
For those who need help pleas feel free to reply to this post, i have successfully figured this plugin out and am using it happily on my kitpvp server, using the permission feature of it to sell kits to players ip: StainedMc.com If you wish to test it, for PSVfootball, Gigazocker, and rnoa did you know that when changing the first level of shop (e.i the shop category know defaults as "items" when changing this to a different name the plugin automatically makes a new config file in which all the data from the old "items" config is not switched over , you have to manually switch over the config to the new file so that it may show up otherwise it will not show up) If you need anymore help with this pm me
@crysis992
I followed the video (and thereby the only useful tutorial) and it didn't work...
@rnoa Please upload your configuration files to pastebin and gimme the links.
config.yml and the config files for your shops.
Your Issue sounds like a simple config mistake, but anyways, there should be errors in your console if nothing shows up ingame.
@gigazocker Same problem here! Please help!
@gigazocker
same here
I dont know why but for me only the different shops are showing up. The items inside them just are not there. I really wonder why. Has anybody an idea ?
@theory18
Modded servers uses as far as i know a 1.6.x version, which contains a bug.
In the latest version (1.7.4 and higher) items are not dragable.
@crysis992
I understand you don't support modded servers, however if you would be able to fix where the icons leave the square they are in(meaning if you are able to fix that the items are not drageable) everything is fixed.