@Override public String getPromptText(ConversationContext context) { String text = Messaging.tr(Messages.SELECTION_PROMPT); for (NPC npc : choices) { text += "\n - " + npc.getId(); } return text; }
private void sendHelp(CommandSender sender, String name, int page) throws CommandException { if (name.equalsIgnoreCase("npc")) name = "NPC"; Paginator paginator = new Paginator() .header(capitalize(name) + " " + Messaging.tr(CommandMessages.COMMAND_HELP_HEADER)); for (String line : getLines(sender, name.toLowerCase())) paginator.addLine(line); if (!paginator.sendPage(sender, page)) throw new CommandException(CommandMessages.COMMAND_PAGE_MISSING, page); }
public String getPromptText(final ConversationContext context) { return Messaging.tr("citizens.editors.waypoints.triggers.delay.prompt", new Object[0]); }