@Override
 public String getPromptText(ConversationContext context) {
   String text = Messaging.tr(Messages.SELECTION_PROMPT);
   for (NPC npc : choices) {
     text += "\n    - " + npc.getId();
   }
   return text;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public String getPromptText(final ConversationContext context) {
   return Messaging.tr("citizens.editors.waypoints.triggers.delay.prompt", new Object[0]);
 }