Package org.bukkit.conversations

Examples of org.bukkit.conversations.ConversationFactory$NotPlayerMessagePrompt


        // Make sure we can use the conversable interface
        if (sender instanceof Conversable) {
          final MultipleLinesPrompt prompt =
              new MultipleLinesPrompt(new CompilationSuccessCanceller(), "function(event, packet) {");
         
          new ConversationFactory(plugin).
            withFirstPrompt(prompt).
            withEscapeSequence("CANCEL").
            withLocalEcho(false).
            addConversationAbandonedListener(new ConversationAbandonedListener() {
              @Override
View Full Code Here


        convo.begin();
    }

    public void setupAddCommand(CraftBookPlugin plugin) {
        conversationFactory = new ConversationFactory(plugin).withModality(true).withEscapeSequence("cancel").withPrefix(new NullConversationPrefix()).withFirstPrompt(new StringPrompt() {
            @Override
            public String getPromptText (ConversationContext context) {
                return ChatColor.YELLOW + "Please enter a unique ID for this CommandItem. (Used in /comitems give) (Type 'cancel' to quit)";
            }
View Full Code Here

TOP

Related Classes of org.bukkit.conversations.ConversationFactory$NotPlayerMessagePrompt

Copyright © 2018 www.massapicom. 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.