@Override public String getPromptText(ConversationContext context) { Conversable c = context.getForWhom(); c.sendRawMessage(cHeader); c.sendRawMessage(ChatColor.GREEN + "Autosetup is a very powerful feature."); c.sendRawMessage(ChatColor.GREEN + "It is to be used for DEDICATED server only"); c.sendRawMessage(""); c.sendRawMessage(ChatColor.BLUE + "Type /quit at anytime to exit"); context.getForWhom().sendRawMessage(Col.Grey() + "---------------------------"); return ChatColor.GREEN + "Enter any key to continue"; }
@Override public String getPromptText(ConversationContext context) { String type = getType(context); PermissionContainer obj = getObject(context); String world = getWorld(context); Conversable c = context.getForWhom(); c.sendRawMessage( Menu.TEXT_COLOR + "What would you like to do with the " + type + " " + Menu.HIGHLIGHT_COLOR + obj.getName()); if (world == null) { c.sendRawMessage(Menu.TEXT_COLOR + "(with no world selected)?"); } else { c.sendRawMessage( Menu.TEXT_COLOR + "(on world " + Menu.HIGHLIGHT_COLOR + world + Menu.TEXT_COLOR + ")?"); } c.sendRawMessage( Menu.TEXT_COLOR + " 1) Add a " + Menu.KEYLETTER_COLOR + "p" + Menu.KEYWORD_COLOR + "ermission " + Menu.TEXT_COLOR + "node"); c.sendRawMessage( Menu.TEXT_COLOR + " 2) " + Menu.KEYLETTER_COLOR + "R" + Menu.KEYWORD_COLOR + "emove " + Menu.TEXT_COLOR + "a permission node"); c.sendRawMessage( Menu.TEXT_COLOR + " 3) " + Menu.KEYLETTER_COLOR + "N" + Menu.KEYWORD_COLOR + "egate " + Menu.TEXT_COLOR + "a permission node"); c.sendRawMessage( Menu.TEXT_COLOR + " 4) " + Menu.KEYLETTER_COLOR + "S" + Menu.KEYWORD_COLOR + "et " + Menu.TEXT_COLOR + "the inherited group"); c.sendRawMessage( Menu.TEXT_COLOR + " 5) Add an inherited " + Menu.KEYLETTER_COLOR + "g" + Menu.KEYWORD_COLOR + "roup"); c.sendRawMessage( Menu.TEXT_COLOR + " 6) Set the " + Menu.KEYWORD_COLOR + "primar" + Menu.KEYLETTER_COLOR + "y" + Menu.TEXT_COLOR + " group"); c.sendRawMessage( Menu.TEXT_COLOR + " 7) Remove an inherited group (" + Menu.KEYLETTER_COLOR + "u" + Menu.KEYWORD_COLOR + "ngroup" + Menu.TEXT_COLOR + ")"); c.sendRawMessage( Menu.TEXT_COLOR + " 8) Set the " + Menu.KEYWORD_COLOR + "chat prefi" + Menu.KEYLETTER_COLOR + "x"); c.sendRawMessage( Menu.TEXT_COLOR + " 9) Set the name " + Menu.KEYLETTER_COLOR + "c" + Menu.KEYWORD_COLOR + "olor"); c.sendRawMessage( Menu.TEXT_COLOR + " 0) Show " + Menu.KEYLETTER_COLOR + "m" + Menu.KEYWORD_COLOR + "ore " + Menu.TEXT_COLOR + "options"); return YAPP.TEXT_COLOR + "Please type your selection:"; }