mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Derp
This commit is contained in:
parent
687ad4cb9f
commit
adae7f3cf0
@ -174,7 +174,8 @@ public class MainCommand implements CommandExecutor, TabCompleter {
|
||||
*/
|
||||
public static ArrayList<String> helpMenu(Player player, final SubCommand.CommandCategory category, int page) {
|
||||
List<SubCommand> commands = getCommands(category, player);
|
||||
final int totalPages = ((int) Math.ceil(12 * (commands.size()) / 100));
|
||||
//final int totalPages = ((int) Math.ceil(12 * (commands.size()) / 100));
|
||||
int totalPages = (int) Math.ceil(commands.size() / 12);
|
||||
if(page > totalPages)
|
||||
page = totalPages;
|
||||
int max = (page * 12) + 12;
|
||||
|
@ -86,7 +86,8 @@ public class list extends SubCommand {
|
||||
}
|
||||
|
||||
//Get the total pages
|
||||
int totalPages = ((int) Math.ceil(12 * (PlotMain.getPlotsSorted().size()) / 100));
|
||||
//int totalPages = ((int) Math.ceil(12 * (PlotMain.getPlotsSorted().size()) / 100));
|
||||
int totalPages = (int) Math.ceil(PlotMain.getPlotsSorted().size() / 12);
|
||||
|
||||
if(page > totalPages)
|
||||
page = totalPages;
|
||||
|
Loading…
Reference in New Issue
Block a user