Examples
Paginator
To use a paginator for your GUI, you need to call .addPaginator() method on your GuiMenu object.
This will add a paginator to your GUI that will allow you to switch between pages.
By default, it uses Material.ARROW for previous and next buttons.
You can also specify your own items for previous and next buttons using .setPreviousPageButton() and .setNextPageButton() on GuiMenu object methods.
Or specify pagination items for every gui using XaGui#setPreviousPageButton() and XaGui#setNextPageButton() methods which both accept ItemStack as a parameter.
To add sound when switching pages, you can use .setPageSwitchSound() method on GuiMenu object. \