OnlyShopGUI
OnlyShopGUI allows you to create admin shop with GUI like chest inventory. Requires Vault!
Features:
Configurable durability, price and amount Discounts for VIP Items for VIP only Click sound when select item to buy Up to 54 slots (6 lines)
Commands:
/shop - open shop GUI /shop reload - reload shop config
Permissions:
onlyshop.vip - ability to use discounts and buy uncommon items onlyshop.reload - ability to reload plugin configuration
Configuration info:
shop-lines: 3 # Number of shop GUI lines. Maximum is 6 (54 slots)
fill-empty: true # Put items in free inventory slot instead of adding items to existing stack
'INK_SACK-3': # ItemName-Durability (-durability is optional)
amount: 2 # Amount of items to add to player inventory when buy
price: 8 # How money take from player for this item
discount: 30 # It give 30% discount to VIP (-1 if you want make item for VIP only)
Configuration example:
shop-lines: 6
fill-empty: true
goodies:
'DIAMOND':
amount: 1
price: 100
discount: 50
'SPAWN_EGG-50':
amount: 1
price: 80
discount: -1
Sources on GitHub (old)
Does 1.8.8 work?
Added sources
Hi, There is no error message when loaded, and the /shop reload command is ok, but it still not work for my server. This is my config.yml:
shop-lines: 3 fill-empty: false goodies: '260': amount: 1 price: 200 discount: 0 '349': amount: 1 price: 200 discount: 0 '366': amount: 1 price: 100 discount: 0 '264': amount: 1 price: 800 discount: 0 '341': amount: 1 price: 500 discount: 0 '46': amount: 1 price: 100 discount: 0 '421': amount: 1 price: 1000 discount: 0 383-95: amount: 1 price: 60000 discount: 0
It works perfect when I use bukkit 1.7.10, but now 1.8.3...something must be wrong...
@willis1030
Just test it. I sure it work
1.8.3 not working? please update for it. thank you!
I thought that this plugin also supports selling items. Otherwise it would've been perfect.
@gigazocker
Maybe you do mistake in your config, because lines 52 and 118 in my code is fine.
Hello! I get this error in the console all the time could you help me solving this problem ?
[18:38:10] [Server thread/ERROR]: Error occurred while enabling OnlyShopGUI v1.2 (Is it up to date?) java.lang.NullPointerException at ru.onlymc.OnlyShopGUI.OnlyShopGUI.setupShop(OnlyShopGUI.java:118) [?:?] at ru.onlymc.OnlyShopGUI.OnlyShopGUI.onEnable(OnlyShopGUI.java:52) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:446) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:380) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:799) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.Bukkit.reload(Bukkit.java:288) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
I dont understand what exactly doesnt work but i really look forward to get this working with you couse i NEED this plugin :D thank you
EDIT: is it possible that the version is wrong ? i use 1.7.9
Does this work on cb1.7.2-r0.3?
Great plugin !
But can you set the shop on an item like Chest Commands please ?
Thanks ^.^
@DerekZil
No, sorry. Plugin was made for my server
This is awesome!
Can you add more pages, and some 'next' pages to have more items, maybe a item to hover over to see your balance on the bottom with the 'next' and 'previous' items?
Also a menu to set up so that there can be different type like 'blocks', 'items', 'misc', 'sales', etc. would be cool.