Shop Menu
With a normal, sign-based shop, players have to teleport to the shop, find the sign they want, and spend lots of time for just one item. With the Shop Menu plugin, however, you can just have a GUI for your shop that players can access from anywhere!
NEW: Added enchantments support!
How to use Shop Menu
This plugin is very simple to use and very interactive. All you have to so is type /shop and then a menu will pop up. I have already put some example items there so you will see those listed there. To buy an item, simply right click it and you will get it. Want multiple items? Click it more than once! To sell items, click the pressure plate on the top right side of the GUI menu which will take you to the sell page. Again, same process: right click to sell an item.
Adding new items is very simple and very configurable. All the notes will be in the config. You can she price, lore, name, and the data value of an item.
Commands and Permissions
Command | Function | Permission |
---|---|---|
/shop | Opens up the shop GUI | shop.use |
/rs | Reloads the config | shop.reload |
The Config
Everything in the config is commentated. But here are a few critical reminders:
- Make sure you do not put 0-8 or anything higher than 54 for the item slot.
- Do not use tabs
- If you get an internal exception error, it's because you did not follow YAML's rules (didn't put quotations, used tabs, etc.)
- If you make a mistake and can't spot the error, stop the server, delete the kShop.jar and folder, put a new kShop.jar and start your server.
- Go to Bukkit's Material Page to see all the material names that need to go under 'item-name'
- Slot number reference (0-8 are red because you can't use them):
- If you want to use the enchantments aspect and don't want to delete you config, red this:
Add this line:
enchantments: <enchantmentID>:<level>
The enchantment ID MUST be a number. Refer to the Enchantment ID List if you need to.
somewhere under your items name. Example:
buy: item1: item-id: 310:0:20.5:9:&cDiamond Helmet enchantments: '0:1' item-lore: - '&bRight click to buy!' - '&4$20.5'
The enchantment ID MUST be a number. Refer to the Enchantment ID List if you need to.
Tutorials
The following is a video made by me. If you make a better video that this one, I just may put yours here:
Dependencies
This plugin requires Vault and an economy plugin (Essentials, iConomy, etc.)
If You're Having Trouble!
A lot of people seem to be having problems with setting up the config correctly, so I will try to eliminate the confusions here:
- You MUST MUST MUST have all the parameters in the item-id section. You CAN'T just leave something out because you're not using it.
- Again, it goes like this:
item-id: THE_ID:DATA_VALUE:PRICE:SLOT:NAME
- If you don't want to add any enchantments, remove the 'enchantments' line completely.
- I understand that there is a bug where my original items still stay there. I have fixed this and I'm waiting for the file to get approve. For now, just do /rs and that should fix the shop. (this happens every time you reload/restart the server).
- If the plugin doesn't even start up, you probably don't have the latest version of Vault or an economy plugin.
- I won't be responding to any "bug reports" that have been addressed here. I know that the config is a bit confusing but it allows for extreme configuration and keeps it very concise.
Banner made by mrgameguideguys :)
Have questions? Feel free to PM me or leave a comment.
Found a bug? Report it and I will fix it ASAP!
Have ideas for things I could add to this plugin? Comment down below or PM me!
I've got it all to work, and now everybody is happy.
one day week i do a special offer, So everybody goes nuts on selling purple wool. ( having a lot of fun with it).
Thanks Mirror Realm.
Considering switching to this on my server, seems like a great little plugin. I'm with xjirou though - being able to use stacks would be great, especially since our current shop system works with stacks too.
Keep up the good work!
How do I make it so that I can buy a stack(64) of something like dirt or wood?
It'd be cool if you could buy and sell in the same place, maybe a right click and a left click for buy/sell? It would also be cool to be able to choose what and where the return button is. Just a few of my thoughts.
Look like a nice shop plugin, i want try that out. :D
@Midget_1980
Yeah theres no way for me to magically know who should get shop.use and who doesnt. Get a permissions plugin.
@Midget_1980
yea i would say a plugin for permissions is a must, i personally use PermissionsEx, you can find a example permissions file for it and edit it to your liking, its really not hard to use once you figure out the basics of it
Hi it all works perfect ! But.. when I desided to launch it on my players server... whoops, only the person on the ops.txt list has the right to use "/shop". I don't use a permissions system, should I?
I use the following plugins: *woldedit [only ops allowed], *Mineconomy [/mc works for all players], *vault [seems tot works for all players], *LoginSecurity [works for all players], *ShopMenu [only ops allowed]. You can see, worldedit, and ShopMenu are being blocked.
My permissions.yml is empty. And as i told you before, I dont use a permissions system-plugin. Please help. I realy like to use this plugin on my server, and have all the players being able to use it.
Did it, 1) double item names, and 2) I had placed a ; insted of a : and in Console you just could't see that right away.
works like a charm, Does anybody has a list with prises that works well ingame; found one: here...
@Midget_1980
you likely have the same issue as me with enchantments, rename the second "item1"
My first impression is: Simple, Easy to edit, Easy to use for the users on my server, But i did something wrong, when i removed the enchantments. So i'll redo my homework, and start again this afternoon. It seems complete, however a second shop in this plugin sounds nice.
@MirrorRealm Great work done! thanks! i'll be enjoiing this
@Adondriel
Trust me, the Bukkit Team and Mojang are more aware of bugs than we think.
@beefzilla
If you want to help get the ghosting issue fixed please vote up this ticket on the bukkit bug report site. https://bukkit.atlassian.net/browse/BUKKIT-4918
@MirrorRealm
So i found what my problem was. In the default configuration file there are 2 "item1"' , once i renamed the second "item1" it worked as expected
as for the configuration being complicated, I don't think it is overly complicated, now that i understand why the enchantment wasnt being removed
Its very unfortunate that the "ghosting" on 1.7.2 is a bukkit/mojang issue, hopefully they can fix it.
@beefzilla
Did you use /rs? Last time I tried it with 1.7.2 there was a ghosting bug. Waiting for Mojang/Bukkit to fix it before I update the plugin.
And I'm sorry if the config is confusing guys. I'll try to make it much better, even if it means making it longer. And I'll try to make a vid on it this weel :)
A video on config (or just an example without enchantments) would be helpful, I was unable to remove an enchantment from items, i tried removing the entire enchantments line as suggested in the description, it wouldn't even open the shop when i did that. (using bukkit 1.7.2 build 2935)
Holy... Looks like i gotta make a vid on the config too 0.0
@Coookiii
I agree with this, I need this too.
Is it possible to create multiple shops? Like; I want a pet shop, Wich I will be using PetShop plugin for, Can I do like it will be :/shop Pet "Pet" can be anything, and that it than opens the pet shop, wich I can setup?
PLEASE HELP!
I cant remove the old buy and sell items! I cant make my own items, they dont show up and my config is getting reseted! Is this a bug? pls help