public void prevPage() { popup.removeWidgets(plugin); page--; if (page < 0) { page = 0; } createPopup(false, true); }
public void nextPage() { popup.removeWidgets(plugin); page++; if (page > maxPage) { page = maxPage; } createPopup(false, true); }