// Sends the help page for /citizens help public static void sendHelpPage(CommandSender sender, int page) { switch (page) { case 1: header(sender, "General", 1, 2); sender.sendMessage( ChatColor.GREEN + " []" + StringUtils.wrap(" - required") + " ()" + StringUtils.wrap(" - optional")); format(sender, "citizens", "", "display Citizens information"); format(sender, "citizens", "reload", "reload Citizens files"); format(sender, "citizens", "save", "force a save of Citizens files"); format(sender, "citizens", "debug", "toggle Citizens debug mode"); format(sender, "citizens", "clean", "remove ghost NPCs"); format(sender, "toggle", "help (page)", "view available toggleable types"); format(sender, "toggle", "[type]", "toggle an NPC type"); format(sender, "toggle", "all [on/off]", "toggle all types for an NPC"); break; case 2: header(sender, "General", 2, 2); format(sender, "npc", "help [page]", "basic NPC help pages"); format(sender, "[type]", "help", "view the help page for an NPC type"); footer(sender); break; default: sender.sendMessage(MessageUtils.getMaxPagesMessage(page, 2)); break; } }
// Sends the help page for the basic npc type public static void sendBasicHelpPage(CommandSender sender, int page) { switch (page) { case 1: header(sender, "General", 1, 3); format(sender, "npc", "", "view information on the selected NPC"); format(sender, "npc", "create [name]", "create an NPC"); format(sender, "npc", "set [text]", "set the text of an NPC"); format(sender, "npc", "add [text]", "add text to an NPC"); format(sender, "npc", "reset", "reset the text of an NPC"); format(sender, "npc", "rename [name]", "rename an NPC"); format(sender, "npc", "remove (all)", "remove all NPC(s)"); format(sender, "npc", "equip", "edit an NPC's equipment"); format(sender, "npc", "move", "move an NPC to your location"); break; case 2: header(sender, "General", 2, 3); format(sender, "npc", "moveto [x y z] (world pitch yaw)", "move NPC to a location"); format(sender, "npc", "tp", "teleport to the location of an NPC"); format(sender, "npc", "copy", "make a clone of an NPC at your location"); format(sender, "npc", "select [ID]", "select an NPC with the given ID"); format(sender, "npc", "setowner [name]", "set the owner of an NPC"); format(sender, "npc", "talkclose", "make an NPC talk to players"); format(sender, "npc", "lookat", "make an NPC look at players"); format(sender, "npc", "list (name) (page)", "show a list of NPCs"); format(sender, "npc", "[path|waypoints] (reset)", "control an NPC's waypoints"); break; case 3: header(sender, "General", 3, 3); format(sender, "waypoint", "modifier [type]", "add a waypoint modifier to an NPC"); footer(sender); break; default: sender.sendMessage(MessageUtils.getMaxPagesMessage(page, 3)); break; } }