mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Removed deprecated in comment
This commit is contained in:
		@@ -60,7 +60,6 @@ import com.plotsquared.bukkit.util.BukkitUtil;
 | 
			
		||||
 * @author Empire92
 | 
			
		||||
 * @version API 2.0
 | 
			
		||||
 *
 | 
			
		||||
 * @deprecated
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@SuppressWarnings("unused") public class PlotAPI {
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ public class HelpMenu {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public HelpMenu generateMaxPages() {
 | 
			
		||||
        this._maxPage = Math.max((_commands.size() - 1) / PER_PAGE, 1);
 | 
			
		||||
        this._maxPage = Math.max((_commands.size() - 1) / PER_PAGE, 0);
 | 
			
		||||
        return this;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -40,6 +40,9 @@ public class HelpMenu {
 | 
			
		||||
        if (currentPage > _maxPage) {
 | 
			
		||||
            currentPage = _maxPage;
 | 
			
		||||
        }
 | 
			
		||||
        if (currentPage < 0) {
 | 
			
		||||
            currentPage = 0;
 | 
			
		||||
        }
 | 
			
		||||
        _page = new HelpPage(_commandCategory, currentPage, _maxPage);
 | 
			
		||||
        int max = Math.min((currentPage * PER_PAGE) + (PER_PAGE - 1), _commands.size());
 | 
			
		||||
        for (int i = currentPage * PER_PAGE; i < max; i++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user