-
Notifications
You must be signed in to change notification settings - Fork 63
Menu
Matej edited this page Nov 22, 2024
·
3 revisions
Here are some commonly asked questions about menus. For a more in-depth training, see https://mineacademy.org/project-orion
My buttons do not work! (Read this if you are overriding getItemAt() - especially if multiple buttons have the same material)
See https://github.com/kangarko/Foundation/issues/336#issuecomment-2493282675 for explainer and how to fix it.
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.
Here's how to use it for example when your plugin starts:
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.
© MineAcademy.org