mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-11 06:45:49 +00:00
Derp
This commit is contained in:
parent
687ad4cb9f
commit
adae7f3cf0
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue