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
Hey. Can you add an option to create a NPC for the main shop menu, not only specific shops? (/shop createnpc name)
Is there a way to put Enchanted books in the shop? Because Book with an enchantment seems to be a different thing.
Loving your plugin so far.
@machogamzer
I'm using the Bukkit Enchantment names, cuz I was to lazy to add proper names. Check out the Bukkit Documentation: http://jd.bukkit.org/dev/apidocs/org/bukkit/enchantments/Enchantment.html
Edit:
In your case it would be:
DURABILITY = Unbreaking
PROTECTION_ENVIRONMENTAL = Protection
Hey! I am a huge fan of your plugin, and are donating soon :) But I have a question. Enchantements doesnt work proppely.. this is an example:
'2': Type: Item Reward: Diamond_Chestplate Displayname: Le Epic Chest Enchantments: PROTECTION:4;UNBREAKING:3;THORNS:3 Pricetype: Money Price: 15000.0 Sell: -1 Amount: 1
In the console when I reload the shop, it says the PROTECTION IS NOT RECOGNIZED, same with Unbreaking, so the only enchantement on this item is THORNS.. please hel? :(<3
@pepper82
Nope, this is a Admin/Server Shop plugin only. It does not support user-created shops.
can players make a gui shop, too?
@I8ML
We already support Item IDs, just put the ID between ""
For Stone it would be: Reward: "1"
or RedWool wool look like Reward: "35:14"
But just as a note, Mojang is going to remove ID support in future versions, you have to skip sooner or later to names anyways.
Can you make shops with item IDS not item names. Cause you cant sell golden apples and notch apples because they have the same name in the wiki. For the golden apple and notch apple there is a diffrent id
@LolwutMC
Nope, but i like the idea, will be added soon :) At the moment you can just choose the shop via the main interface, or via npcs / commands.
Hi, Is it possible to have a shop inside a shop. EG: Having a menu called hubshop where you can open either the Token shop, or the money shop. (like HiveMC)
Is there a way you can change the name ublove the GUI. instead of it saying Shop
My bad, I was looking at this on my phone, and didn't read all of the pages. Thanks!
@mikkibee
Citizens support has already been added ;) Check the Commands&Permissions page if you don't know how to setup NPCs (Note: This requires a 1.7.9 compatible Citizens2 Developer Version)
Are there plans to ever incorporate citizens support? That would be super, super awesome!
Next update comes with Discounts/Sales, Sign support (Players can open shops via signs), Color codes in displaynames and lots of bugfixes. Should be ready in a few days.
@godofreie
Then read the error messages, and look up your item. Bukkit named the red_flower "RED_ROSE"
Or simply go ingame, hold the item and type /shop info. It will tell you the name you have to add to your config.
@batman202012
I've tested it via PermissionsEx, they are added permanent on pex. I'm using vault to add permissions, maybe its a groupmanager or vault bug?
@batman202012 thank you but Authors already fix that~
and now i have a new qus want to ask..
a few item can not be use like the red_flower(poppy/Blue Orchid/etc..)or stonebrick or DYE..
[11:56:32 INFO]: ===============================================================
==================
[11:56:32 WARN]: [ERROR] Material Name NOT found for RED_FLOWER
[11:56:32 WARN]: [ERROR] Check the official bukkit API documentation for a full
material list
[11:56:32 WARN]: [ERROR] http://jd.bukkit.org/beta/apidocs/org/bukkit/Material.h
tml
[12:04:12 INFO]: ===============================================================
==================
[12:04:12 WARN]: [ERROR] Material Name NOT found for STONEBRICK
[12:04:12 WARN]: [ERROR] Check the official bukkit API documentation for a full
material list
[12:04:12 WARN]: [ERROR] http://jd.bukkit.org/beta/apidocs/org/bukkit/Material.h
tml
[12:11:14 INFO]: ===============================================================
==================
[12:11:14 WARN]: [ERROR] Material Name NOT found for DYE
[12:11:14 WARN]: [ERROR] Check the official bukkit API documentation for a full
material list
[12:11:14 WARN]: [ERROR] http://jd.bukkit.org/beta/apidocs/org/bukkit/Material.h
tml
I did hit a snag of my own though...I'm using Essentials: Group Manager as my permissions plugin and I can't tell if it's your plugin or this one, but the permissions are "temporary" (the server is restarted and the permissions added are deleted).
@godofreie
I had the same problem though I did find a fix when using permissions you have to use the ":" and repeat the permission if there is only one. So in your case you would use
@godofreie
Thank you, i will fix this as fast as possible.
I have a question to ask.[use mcpc1.7.2 and shop 1.4.9]
I want to use it to open a store permissions.
so i set item01 like this
Type: Permission
Reward: written_book
Permission: shop.open.01tool
Displayname: 'tool'
lore:
- '&etool'
Pricetype: Money
Price: 5
But can not be achieved
Server appears below those
How can I fix it?
[20:46:26 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.ja
va:330) [JavaPluginLoader$1.class:git-MCPC-Plus-1.7.2-R0.4-forge1078-75]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62) [RegisteredListener.class:git-MCPC-Plus-1.7.2-R0.4-forge1078-75]
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredLi
stener.java:30) [TimedRegisteredListener.class:git-MCPC-Plus-1.7.2-R0.4-forge10
78-75]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:487) [SimplePluginManager.class:git-MCPC-Plus-1.7.2-R0.4-forge1078-75]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:472) [SimplePluginManager.class:git-MCPC-Plus-1.7.2-R0.4-forge1078-75]
at net.minecraft.network.NetHandlerPlayServer.func_147351_a(NetHandlerPl
ayServer.java:2016) [mx.class:?]
at net.minecraft.network.play.client.C0EPacketClickWindow.func_148833_a(
SourceFile:32) [il.class:?]
at net.minecraft.network.play.client.C0EPacketClickWindow.func_148833_a(
SourceFile:10) [il.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java
:206) [ef.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:
173) [ms.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.jav
a:929) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(Dedicated
Server.java:429) [lj.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.jav
a:759) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622) [M
inecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.substring(Unknown Source) [?:1.7.0_45]
at com.avalon.handler.BuyHandler.Pay(BuyHandler.java:167) [?:?]
at com.avalon.listener.InventoryClick.ShopClickEvent(InventoryClick.java
:79) [?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0
_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0
_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1
.7.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_45]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:328) [JavaPluginLoader$1.class:git-MCPC-Plus-1.7.2-R0.4-forge1078-75]
... 14 more