QuizTime
QuizTime(KingOfRiddle) - An ask&answer plugin that can give player money/items as rewards.
Version: v1.2
(I think that the name "KingOfRiddle" isn't proper for I haven't add a rank system like Top10 to it.
So I decided to Change my plugin's name "KingOfRiddle" to"QuizTime".I think it is proper. -by UnluckyNinja 05.06.2012)
Features:
- OPs can give a riddle.If someone has answered the question and the award has been set,he or she will be rewarded.
- The award can be cash(need the iConomy plugin) or items.
- Permission support.
- Entertainment - Help the server gather popularity.
Permissions supported:
- quiz.* - All below.
- quiz.giver - Allows player to give a question.(include set answer&reward)
- quiz.solver - Allows player to answer the question.
Dependency:
- Vault and any economy plugin that Vault supports(if you want to set money as award).
Usage:
- Givers use commands to give a quiz.
- Don't forget to set the answer.Players' message will make no effects if the answer hasn't been set,even though the player reply a correct answer.
- Players just need to send the message that is the same as the answer to gain rewards(if set) without any command.
- When a quiz is sent,the server will broadcast the text of the quiz&rewards.
- Forgot the question?Just type /repeat !
Commands:
- /quiz <text> - Give a quiz,like: /quiz Who owns this server?
- /qsanswer <text> - Set the answer,like: /qsanswer the owner
- /qsaward <item/money(just "money")> <amount> - Set the awards,
like: /qsaward dirt 20 or /qsaward 17 30 or /qsaward money 50 - /repeat - Show the quiz again.The display text is the same as the first one.
(Somewhere different for players who don't have the solver permission) - /autoquiz <time(in seconds)> - Make the server auto-broadcast the quiz(U need to quiz first),like: /autoquiz 10
Changelog:
- Version 1.2 - 05.06.2012
- Fixed some bugs.
- Version 1.2beta -05.06.2012
- Name was changed to QuizTime.
- /riddle was changed to /quiz.
- /rseta was changed to /qsanswer.
- /rsetr was changed to /qsaward.
- Permission riddle.giver was changed to quiz.giver.
- Permission riddle.solver was changed to quiz.solver.
- Permission riddle.* was changed to quiz.* .
- Added config file config.yml and string file strings.yml.
- Added the /autoquiz command.
- Version 1.1
- Modified some display text.
- Fixed some bugs about reward system.
- Added the /repeat command.
- Version 1.0
- First Release.
- Permission supported.
- Multiple type of reward support.
Bugs?PM me.
Please update to 1.4.6 PLEASE!!
All questions disappear after a server restart
@wkera
You don't need to create config.yml yourself.The plugin will create it automatically(every plugin will).The config.yml is created for people those who want to keep multiple language.
Don't created config.yml. If me create it by hand, then he has nothing recorded. Thanks.
@fjutte
Thanks for your suggestions.I will think about them.
@LordBitsOBacon
I will add an option about it soon.Thank you.
Just want to say, great plugin. I would like to see a way to make the answer not case-sensitive, but other than that, great plugin.
Tested this and we love it!! But could you do so the quz starts automatically when the server is (re)loaded? Or even better, auto start and stop at set times, like only running daytime between 08:00 and 12:00. That would be awesome!
And, could you add feature for several correct answers? Like Q:"Who made Minecraft?" A:"Notch|Mojang"
Some sort of logging would be appreciated too, like a comma separated textfile, idea: <date>,<time>,<question>,<correct_answer>,<correct_answer_by>,<num_of_incorrect_answers>,<time_until_answered_correct>,<rewarded_amount>,<rewarded_item>
Thanks for a simple but fun plugin!
@DanielDan15
Just say the answer.(not by mouth but by keyboard...)
And how the player will answer?
I second ryan's #1 suggestion.
/riddle will you be adding EssentialsEco support to this plugin?
@ryanwagner
I will deliberate about your requests.
@Rixa78
Thanks for your advice.
Have you ever played WoW? They had an add-on called "Trivia Bot" That sounds similar to this. Maybe you can get some ideas from it.
Feature Requests:
1) The ability to set this on a schedule. For example every X hours the server starts off a QnA session. Time to be configurable, or set to a value like -1 to disable the auto timer. Which also means server admins will need a way to configure the QnA portion. Maybe by setting a list of Questions and answers in a flat file that are randomly selected by the riddle plugin.
2) Before a QnA session starts players are given an opportunity to opt in or out. Maybe with a command like /riddle join. After a game has start they can quit playing with /riddle leave. Join period configurable and option to disable this pre-join period. With the option that all players auto join.
3) Instead of a winner per question there is a riddle per QnA session. Riddles are still selected randomly per #1, but instead of 1 question it's a configurable amount of questions asked.
4) To get around issues with Player answers not exactly matching players answer multiple choice questions. Such as you get a question and X number of answers. The player response with the answer # instead of trying to answer it in text.
5) Vault support so that this isn't dependent on iConomy.
@S3thc0n
It won't work if they are not completely the same.
It involves a more difficult programming(for me).
Maybe I will overcome this problem in future visions.
You can just set the keywords or use abbreviation as answer to avoid this problem.
@joshwenke @wyvernlord303
:) Thanks.
Looks cool, Ill give it a shot.
How about Approximate Pattern Matching for the answers?
Going to test right now :D this looks so awesome, because I can both reward and frustrate my players with it XD