MDC Questioner
A highly adaptive Questioner API that you can easily implement in your plugins (or your server).
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();
@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();
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();
@Override
public void answer(String answer){
// the logic to run when they answer
asked.sendMessage(ChatColor.GREEN + "Your response has been recorded.");
}
};
question.ask();
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Questioner [Easy to use] [Adaptive] [API] is a free Minecraft Java mod. Downloaded 984 times (via Spigot). Download it and open it directly in the game.