Nocturne123 / QuestionsTime

Ask questions and gain prize for the winner
Download

QuestionsTime

Ask questions and gain prize for the winner !

Features

The plugin will say questions you have created in the config file, with a prize for the first player who find the answer. The delay between questions and the prize for each question are configurable ! QuestionFinal

NB: The items prize can be modded items

Configuration

Create a question :

Command version

  • Type /qt create and follow the instructions.
  • You need the permission questionstime.command.base and questionstime.command.create.

Config file version

  • Open the config file (config folder > questionstime > questionstime.conf).
  • All the questions need to be in the “questions” section.
  • First, the name of the question. That can be anything you want.
  • Open bracket.
  • Second, write the word “question”, an equal character and the question between quotes.
  • Third, the following depending if you want an open question or a question with multiple propositions :
    • For an open question :
      • Write the word “answer”, an equal character and the answer between quotes.
    • For a multiple propositions question :
      • Writes the word “proposition1”, an equal character and the first proposition. Start again but with “proposition2”, “proposition3” and “proposition4”.
      • Write the word “answer”, an equal character and a number which corresponding the numero of the right answer (1, 2, 3 or 4).
- Add prizes
  • Write the word “prize” and open bracket.
  • Write the word “announce”, an equal character and “true” if you want to announce the prize after the question was asked, or “false” otherwise.
  • Write the word “money”, an equal character and the amount of money. This is optional. An economy plugin is needed.
  • Write the word “items”, an equal character and square bracket and items. This is optional. Items need to follow the following pattern :
    • ModID:ItemID;Variant;Count
      • Examples :
      • stone
      • minecraft:stone
      • stone;granite
      • minecraft:stone;0;64
      • wool;12;42
    • Precision : you can use the “text” version for the item’s damage (only for Sponge API 7)
  • Close the bracket
- Add malus
  • Write the word “malus” and open bracket.
  • Write the word “announce”, an equal character and “true” if you want to announce the malus after the question was asked, or “false” otherwise.
  • Write the word “money”, an equal character and the amount of money. An economy plugin is needed.
  • Close the bracket
- Add timer
  • Add a delay to answer the question.
  • Write the word “timer”, an equal character and its value in seconds. The minimum can be 10 seconds and the maximum 23h59m59s.

Other configurations :

  • randomTime :
    • If he’s true, the questions will be asked in an interval defined by “minCooldown” and “maxCooldown”
    • If he’s false, the questions will be asked after a period defined by “cooldown”
  • cooldown :
    • The time in ticks after a question will be asked. The “randomTime” need to be false
  • minCooldwon / maxCooldown :
    • Defined a period between minCooldown and maxCooldown in ticks during which a question can be asked
  • minConnected :
    • Defines the minimum of players connected in order to ask a question
  • personnalAnswer:
    • If he’s true, the answer given by a player isn’t shown in the chat
    • If he’s false, the answer given by a player is shown in the chat

Message

You can modify the messages displayed by the plugin. Some lines have “components”, a word between brackets that will be replaced by the plugin to display important information. You can’t change, add or remove a component.
Here is the default “message.conf” :

question.new: §eIt's Question Time !    
question.ask: §e§l{question}    
question.proposition: §b•{position}] {proposition}    
prize.announce: §eThe winner win :
prize.money: §9•{money} §r{currency}
prize.item: §9• {quantity} * {modid}§f{item} §b{metadata}
malus.announce: §cBut a wrong answer :
malus.money: §4• -{money} §r{currency}
answer.announce: §eAnswer with : "§bqt>answer§e"
question.end: §eMay the best win !
question.end.timer: §eYou have §9§l{timer}§r§e to answer ! May the best win !
answer.win: §e§lYou win !
answer.win.announce: §e§l{name} win !
reward.prize.announce: §e§lHere's your reward :
reward.prize: §9• {quantity} * {modid}§f{item} §b{metadata}
reward.money: §9•{money} §r{currency}
answer.false: §e§l{answer} §cisn't the right answer :(
answer.malus: §cYou lose §4{money} §r{currency}
question.timer.left: §eYou have §9§l{timer}§r§e to answer !
question.timer.out: §cNobody have found the answer, maybe a next time

To-do

  • Give malus if a player didn’t say the right answer, and to avoid spamming
  • Remake the “prize” interface to be more readable
  • Add an option to hide the player’s answer
  • Create questions in the chat
  • Be compatible with Sponge 5 (Minecraft 1.10.2)
  • Timed question : answer the question before the timer is out
  • Change the text language
  • Answer delay : if the answer isn’t right, the player need to wait some seconds before he can reply again
  • Possibility of adding the author of a question
  • Event question : a question is said if a player with the permission type a command. Can be useful while an event and when you doesn’t want to let the plugin choose
  • Grade bonus : Depending of the rank, the player can have more prizes/gain more money and/or loss less money
  • Multiple winners with different prizes according to the position
  • Custom item’s name and lore

Category: Games

Published on Oct 26, 2017

894 views

103 total downloads

Licensed under MPL 2.0

Members