iQuestion

902 Downloads

Answers to questions with actions in as low as 1 line of code!

Ever needed to ask a player a question and execute a set of actions depending on their answer?

Now you can do this in a single line of code! Think you can easily program something like this on your own every single time you need to ask a player a question? You can, but you will end up having to type several hundred lines of code every single time because of the way queued questions work!

Hope all the bukkit developers out there put this to great use!

Planned Features:

  1. Execute custom BukkitRunnable depending on answer
  2. Larger set of command options
  3. Questions, depending on the answer, lead to other questions
  4. Perform certain commands or BukkitRunnable's when timeout ends if it does

Getting Started

  1. Choose a plugin that your going to use to ask a question with and add iQuestion.jar to this plugin's build path
  2. Add iQuestion.jar to server

Asking Questions

Click here to view the image up closer and larger. http://gyazo.com/410cb5e2d24b7538251f6a14a74ec224.png

Command Types

More and more commands will be added every update to be sure to give you guys the widest range of command options possible! Feel free to request your own command type ideas so they can be added to the plugin! Thanks.

  1. Answer.ACCEPT_CMD ("accept")
  2. Answer.DECLINE_CMD ("decline")
  3. Answer.LATER_CMD ("later")
  4. Answer.NEVER_CMD ("never")

Commands

  1. /qtest - Runs the example above taking you through a simulation of what it's liked to be asked a question and get to answer.