Skip to content
Matej Pacan edited this page Aug 29, 2022 · 1 revision

Here are some commonly asked questions about menus. For a more in-depth training, see https://mineacademy.org/project-orion

Customize ButtonReturnBack, ButtonRemove and Button's material, title and lore (i.e. changing the Door icon in ButtonReturnBack)

Use static methods as shown below in your onPluginStart() method, or before the button is instantiated.

Screenshot 2022-08-29 at 08 28 07

Screenshot 2022-08-29 at 08 28 01

Screenshot 2022-08-29 at 08 27 52

Here's how to use it for example when your plugin starts:

Screenshot 2022-08-29 at 08 28 32

MenuPagged: Custom design with empty slots in pages

You can fill the page items with a custom material such as a stained glass, and then override getItemAt() method to return null (empty slot) when the given slot in a page is of that material.

Screenshot 2022-08-29 at 08 25 52