📘Menu Guide
How to create menus and add items into menus.
Create Menu In-Game
Create the menu:
/shop create menu <name>
Set menu title:
/shop set menu <name> title <title>
Set menu size:
/shop set menu <name> size <size>
If you followed these steps you should now know how to create menus in-game. To test the menu after you created it run /shop open menu <menu>
.
Create Menu In YAML
Open the
menus.yml
and create a new key under themenus
key, this will be the name of the menu.Under your new menu key input a
title
,size
anditems
key, along with the required details for each key.When you have completed that it should look something like this:
When you've made all your changes in the file, run the command /shop reload
to apply your changes in-game or restart your server.
Add Menu Item In-Game
Get the item you want to add and put it in your main-hand slot. You can also edit the item if needed with
/shop item
.While holding the item run the command
/shop add menu <menu> <shop/menu> <target>
.You'll have a option between a shop or sub-menu, this will be the rout the item will take when clicked.
If you ran that command the item you're holding should now be added to the target menu. No restart or reload needed.
Remove Menu Item In-Game
Open the menu that has the item you want to remove and sneak-click it. If you're OP it should give you a copy of the menu display item.
Now with that item in your hand run the command /shop remove menu <menu>.
If you ran that command the item you're holding should now be removed from the target menu. No restart or reload needed.
Last updated