Questioner [Easy to use] [Adaptive] [API] 1.0

A highly adaptive Questioner API that you can easily implement in your plugins (or your server).

  1. Miles
    MDC Questioner
    A highly adaptive Questioner API that you can easily implement in your plugins (or your server).​

    View the source!

    For Server Owners
    Does a plugin you want require this plugin? Installation is easy. Just drag and drop the jar into your plugins folder. You can also use /ask to question your own players!

    For Developers
    Do you want your plugin to be able to request information from players, but do not want to make a questioning system? MDC Questioner is for you. It's so easy to use, you'll forget how you ever made plugins without it.

    To gather information from a player with MDC Questioner from within your plugin, you must import the com.mdc.mib.questioner.Question class. You will then make a new instance of it, and hand it a bit of logic to run when they answer the question. MDC Questioner also supports custom response validation, configurable messages, and answer logic. The goal of MDC Questioner was to make your life easier, so you just hand MDC Questioner a bit of response logic, or you can make your own answer validation system.

    Here is a little snippet of Java that should give you the gist of how you'd use MDC Questioner:
    Code (Text):
    Question question = new Question(ChatColor.GREEN + "What is your favorite color?", playerBeingAsked){
                @Override
                public void answer(String answer){
                    // the logic to run when they answer
                    asked.sendMessage(ChatColor.GREEN + "Your response has been recorded.");
                }
                // OPTIONAL: logic to validate answers

                @Override
                public boolean validate(String s){
                    return s.length() > 0;
                    // based on 's', return a boolean value of whether to accept their answer
                }
                @Override
                public String getInvalidMessage() {
                    return ChatColor.RED + "Please include a response!";
                    // a customizable message to tell them that their response was bad, if it was
                }
            };
            question.ask();
    And here's the bare minimum you'd need in your plugin:
    Code (Text):
    Question question = new Question(ChatColor.GREEN + "What is your favorite color?", playerBeingAsked){
                @Override
                public void answer(String answer){
                    // the logic to run when they answer
                    asked.sendMessage(ChatColor.GREEN + "Your response has been recorded.");
                }
            };
            question.ask();
    As you can see, it's very easy to use.
    Samistine likes this.

Recent Reviews

  1. Thecrafteur75
    Thecrafteur75
    5/5,
    Version: 1.0
    Great resource! Easy-to-use and very powerful. I like that kind of man who make the stone under the gravel ;)