Create Menu
Learn how to start building GUI menus
If you were previously using the Chest Commands plugin for GUIs, you may be able to automatically import them into ElvenideGUI
Create Menu File
Navigate to Folder
Go to the /plugins/ElvenideGUI
folder, where all menu files will be stored.
Create a Menu File
Create a new YML file in the folder. You can name it whatever you want, but for this example we’ll name it test.yml
.
Menu filenames need to be lowercase with no spaces, as they are used in permission checks.
Open Menu File
Open the YML file you just created in a text editor of your choice. Editors with syntax highlighting, such as VSCode, are the most convenient.
Configure Menu
For now, let’s just add the following basic example to our menu:
Assign Permissions
Use your permissions plugin to give the following permission to any user or rank that should be able to open the menu you’ve just made, including yourself.
Replace test.yml
with the name of the file you made, if you chose a different name.
You will also want to give yourself and/or your admins the following permission to allow them to reload menus without restarting the server.
Reload Plugin
If you created the menu while your server was running, use the following command to reload the plugin and enable the new menu:
If you created the menu while your server was down, simply restarting the server will enable the new menu.
Try It Out!
Your new menu is ready to test out! Use the following command to open the menu:
Next Steps
Now that you’ve learned how to make a basic GUI menu, you can start to use the full functionality of ElvenideGUI to customize menus to your liking.
There are many different menu settings, icon options, and
click actions to play with. You can create any number of new menus by making new YML files in the
/plugins/ElvenideGUI
folder.