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!
The plugin doesn't work for me too.I have the last version of vault and ShopMenu.But , the plugin don't found Vault.Fixe pls !
PS : Sorry for the bad english but i'm french.
This plugin just isn't working for me. I'm on a mac, I don't know if that matter or not. I have Vault and Essentials and my server won't detect this plugin. I can't find commands in /help and even in /plugins it doesn't show up.
@Slay_Ganj
Check the console for errors and PM me your config file.
This has never happened to me so I'm guessing you really messed up in the config.
@MirrorRealm
I don't know if this has already been addressed, but for some reason, upon moving to the sell menu of the shop, the game experiences about 30 seconds of epilepsy while the shop attempts to load the items. I'm not quite sure what is causing this, be it on my end with poor configuration or possibly just an actual issue with the plugin but I wanted to know if there could be any assistance offered on the matter. Thank you
@matthijs110
There was a bug where if you clicked an item in the sell shop and you didn't have the items, it would still give you the money. And I made it so that instead of 1 item being like 7 lines to 3 lines.
If you can still move items, that means that you did not give each item a unique displayname. You can have the same item (idk why you would want to) but you must have unique displaynames.
@MirrorRealm
What did that fixed?
With dragging I mean, I can duplicate the file in the shop inventory, and drag that to anything. But when I click on that duplicate, nothing happens.
@matthijs110
Oops! Accidentally put getInt instead of getDoublad :P
I uploaded the fixed file. Should be approved in a couple of hours :)
And can you explain what you mean by "dragging items"?
@MirrorRealm
This plugin. Thats weird :/. I can... And how do I do the $0.50?
@matthijs110
Umm are you talking about the plugin you were working on or this plugin?
If you're talking about this plugin, you shouldn't be able to drag items unless it's in your inv...
How can I do $0.50? And Its still possible to drag the items. Is there a way to disable that?
@benneht
Same :D
@matthijs110
Yeah, I can't wait, I've been looking for something like this for a while!
When will there be a download available?