Create severale pages menu

Methods

chevron-rightonCloseMenu [OVERRIDE]hashtag

This event is called when player close the menu

protected abstract void onCloseMenu(Player player);
chevron-rightonOpenMenu [OVERRIDE]hashtag

This event is called when player open the menu

protected abstract void onOpenMenu(Player player);
chevron-rightonSwitchPage [OVERRIDE]hashtag

This event is called when player change page of menu

protected abstract void onSwitchPage(Player player, int page);
chevron-rightaddItemhashtag

chevron-rightrefreshPagehashtag

I'm inviting you to see the same doc on refreshPage in this part.

What's several page menu ?

several page menu is chest menu that allow you several pages. All pagination page logic is already set, you just have to place your items.

circle-info

When you gonna give your menu size, the system will keep last 9 slot for him and you cannot place items on thoses 9 last slots.

Create your first menu

Now you have your menu, let's add it to menu system.

circle-exclamation

Add items in menu

Last updated