Examples of maxPages()


Examples of net.citizensnpcs.utils.PageUtils.PageInstance.maxPages()

                    + StringUtils.listify(ChatColor.GREEN + "Trader "
                            + StringUtils.wrap(selling ? "Selling" : "Buying") + " List (Page %x/%y)"
                            + ChatColor.YELLOW));
            instance.process(page);
        } else {
            player.sendMessage(MessageUtils.getMaxPagesMessage(page, instance.maxPages()));
        }
    }

    private static ItemStack parseItemStack(Player player, String[] split) {
        try {
View Full Code Here

Examples of net.citizensnpcs.utils.PageUtils.PageInstance.maxPages()

        }
        int page = Integer.parseInt(passed);
        if (page == 0) {
            page = 1;
        }
        if (page <= paginate.maxPages()) {
            paginate.header(ChatColor.GREEN
                    + StringUtils.listify("NPC List for " + StringUtils.wrap(toDisplay.getName())
                            + " (%x/%y)"));
            paginate.process(page);
        } else {
View Full Code Here

Examples of net.citizensnpcs.utils.PageUtils.PageInstance.maxPages()

            paginate.header(ChatColor.GREEN
                    + StringUtils.listify("NPC List for " + StringUtils.wrap(toDisplay.getName())
                            + " (%x/%y)"));
            paginate.process(page);
        } else {
            sender.sendMessage(MessageUtils.getMaxPagesMessage(page, paginate.maxPages()));
        }
    }

    public static String getItemName(int itemID) {
        return UtilityProperties.getItemOverride(itemID).isEmpty() ? getMaterialName(itemID)
View Full Code Here

Examples of net.citizensnpcs.utils.PageUtils.PageInstance.maxPages()

            + "Waypoint modifiers <%x/%y>" + ChatColor.GREEN));
    for (WaypointModifierType type : WaypointModifierType.values()) {
      instance.push(ChatColor.GREEN + "   - " + ChatColor.YELLOW
          + type.name().toLowerCase());
    }
    if (page > instance.maxPages()) {
      player.sendMessage(ChatColor.GRAY
          + "Invalid page number. There are " + instance.maxPages()
          + " pages.");
      return;
    }
View Full Code Here

Examples of net.citizensnpcs.utils.PageUtils.PageInstance.maxPages()

      instance.push(ChatColor.GREEN + "   - " + ChatColor.YELLOW
          + type.name().toLowerCase());
    }
    if (page > instance.maxPages()) {
      player.sendMessage(ChatColor.GRAY
          + "Invalid page number. There are " + instance.maxPages()
          + " pages.");
      return;
    }
    instance.process(page);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.