diff --git a/src/com/massivecraft/massivecore/util/Txt.java b/src/com/massivecraft/massivecore/util/Txt.java index 8c7224a7..303c03be 100644 --- a/src/com/massivecraft/massivecore/util/Txt.java +++ b/src/com/massivecraft/massivecore/util/Txt.java @@ -541,18 +541,12 @@ public class Txt @SuppressWarnings("unchecked") public static List getPage(List lines, int pageHumanBased, String title, int pageheight, MassiveCommand command, List args) { - // Check if command is present - boolean flipPage = command != null; - - // If command is present, reduce pageheight in favor of flipsection - if (flipPage) pageheight--; - - // Create ret - ArrayList ret = new ArrayList(); + // Create Ret + List ret = new ArrayList(); int pageZeroBased = pageHumanBased - 1; int pagecount = (int)Math.ceil(((double)lines.size()) / pageheight); - // Add title + // Add Title Mson msonTitle = Txt.titleizeMson(title, pagecount, pageHumanBased, command, args); ret.add(msonTitle); @@ -568,7 +562,7 @@ public class Txt return ret; } - // Get lines + // Get Lines int from = pageZeroBased * pageheight; int to = from + pageheight; if (to > lines.size()) @@ -595,10 +589,7 @@ public class Txt throw new IllegalArgumentException("The lines must be either String or Mson."); } - // Add flipsection if command is present - if (flipPage) ret.add(getFlipSection(pagecount, pageHumanBased, args, command)); - - // Return ret + // Return Ret return ret; }