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!
@CaptainHal
1.7.2 does not have many differences of 1.7.4, then try using the 1.7.2 version, if it goes wrong, wait for 1.7.4 ;)
please update for 1.7.4
no slot 54 exist .
slot 48 is missing on your image . update your description ;)
@Geoblix
Hi, I had the same problem and I fixed accidentaly when I Copy/past the same item and renaming it as Item1b, for example:
[
sell:
item1:
item-id: 296:0:100:9:&eWheat
item-lore:
- '&2Click Here to buy!'
- '&e$100'
item1b:
item-id: 296:0:100:9:&eWheat #All exactly the same
item-lore:
- '&2Click Here to buy!'
- '&e$100'
]
update?
PLEASE I NEED HELP!!!!
Is there any way where you can click a villager or any mob to open the shop menu where you can stuff? Or just a shop GUI? PLEASE HELP!2 Thanks
Yeah that would be awesome like with the catagories!!
You should add multiple shops, shop signs, and catagories
Good plugin but i suggest multiple shops for donator and stuff, also if i people could buy like half a stack instead of one at a time and lastly could you make it so that opening a certain chest would direct to that shop?
Thank you for this awesome plugin!
@DerekZil
If you want to get more advanced like that I would recommend ChestCommands.
What do I do if I want more than one enchantment on a sword? My server ip is: 192.111.150.123:25566
I was wondering if there was a way to have more than one "buy" page?
Can you make a donator shop button like for going to another page?
That would be awesome.
Does any friendly person want to share their config? These kinds of plugins seem really great, but they take a lot of time to set up.
Thanks!
I tried your plugin. It looks realy nice. Only I've found a bugg. If I rename my BlazeRod to: "Test", and im buying the rods for like $20(Price doen't matter) I can keep selling. It won't take the rods from my inventory. Also people can lose their stuff if they put their items into your shop, and goes out.
First of all I wan't to thank you for this great plugin! It works fine and all of my players are happy about it.
Sencondly I've got 2 suggestions/questions: Is it possible to sell/buy more then 1 item at once? Is it possible to turn the shop off for a specific world?
It would be nice if someone can help me.
Cheers! (P.S. I'm from Germany, so English isn't my motherlanguage. Please don't complain about some of my mistakes.)
Great plugin, loving everything about it so far. However, I was wondering if there's a way to not include enchanting on an item in the shop?
I installed this today and had a bit of a mess around with it. Everything seems to work alright, apart from enchantments, which I can't seem to get to work right at all. I'll detail the main things I've tried with the "enchantments" lines below:
1) I changed the value from 0:1 to 51:1 to add Infinity I as per the wiki. Config error.
2) I changed the value to 1:1 (Fire Protection I) to test. Config error.
3) I tried deleting all the "enchantments" lines from the config. The Sell page worked fine, but the Buy page reverted to the default Protection I.
Our server is on Spigot build 1245, though loading on CraftBukkit build 2987 does the same thing. The config is unaltered apart from the second Sell shop item (bedrock) being removed and the aforementioned line changes. Any ideas? Thanks!
(using version 1.2.2 + GroupManager for permissions)
EDIT 1: Just reloaded the config using 1:1 on one of the items and now it did pick up my changes. WIll continue testing, and edit this post as things happen.
EDIT 2: Seems to be working great now. Weird, very weird. The only thing different that I can see is that the enchantment is now gone from the Sell bit of the config, but still. Oh well, if it works it works! :P
EDIT 3: Alright, so it defaults to Protection I when on the Buy list when the enchantment line is removed. A bit annoying, but definitely workable! Gonna have a lot of fun with this plugin.
EDIT 4: Found two possible issues. First off, having several of the same item in a list and clicking one will instantly buy/sell all of them. Probably not relevant, but still - kinda made me jump the first time around! Second, your grid image on this page skips from 47 to 49, counting up to 54 where it should cap at 53. :P