setPage

fun setPage(page: Int, player: SpigotPlayer, totalContent: Int? = null)

Sets the given page for the given player. Additionally totalContent can be defined to automatically calculate the maxPages for the given player.

This function will clear all slots defined by Info.fromSlot until Info.toSlot.

The page will always be at minimum 1, even when a value lower than that has been provided.

Finally, the onPageChange lifecycle function is called for the given player.