Trivia 2.0.0.1

Random questions for everyone to answer :)

  1. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    This plugin will ask questions, and players will be able to answer them and gain money doing so. (All answers are case insensitive)

    Commands
    /answer (or /a) <answer here> - Answer the trivia question
    /triviareload - reload the trivia config file

    Permission
    trivia.reload - usage of /triviareload


    The default trivia config file, comes with 221 questions, but it is advised to add some of your own questions, because everyone can read the source code. A good site to find Q and A is www.randomtriviagenerator.com


    Default trivia config: Click Here

    Config explained

    Questioninterval: The time between trivia ending and then next question
    AnswerTime: The amount of time players have to answer the current question.
    DisplayWrongAnswers: If true, players will be told what wrong answers everyone has entered after someone answers the question correctly.
    CurrencyAmount: The amount of money players will receive when they've correctly answered the question.
    QuestionAndAnswers: This is an array containing all questions followed by it's answer.​
     
    • Like Like x 2
    #1 Ancientgods, Jan 3, 2014
    Last edited: Mar 22, 2015
  2. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    this is fun - thanks laurens-

    will just the first person to answer get awarded or anyone who answers under the time period? also, can someone answer more than once or does it eliminate them from the question for that interval if they are wrong?
     
  3. Spoliarium

    Spoliarium Level 4

    Joined:
    Jun 21, 2013
    Messages:
    61
    haha nice I requested this kind of plugin couple of months ago..

    anyway, is there a possibility that you can make the question by rounds e.g 10 question per round like the IRC trivia bot.. also can you add a command that starts it like /trivia to start a round.

    I like this plugin though
     
  4. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    A player can try guess the answer as many times as he wants and there can only be one winner
     
  5. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    added trivia.reload permission now
     
  6. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    now supports multiple answers, moar questions added, and now it shows the wrongly entered answers aswell (can be disabled in config)
     
  7. Spoliarium

    Spoliarium Level 4

    Joined:
    Jun 21, 2013
    Messages:
    61
    Code:
    2014-01-04 02:12:10 - Commands: INFO: Server executed: /triviareload.
    2014-01-04 02:12:10 - Commands: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
      at TRIVIA.Trivia.Reload_Config(CommandArgs args)
      at TShockAPI.Command.Run(String msg, TSPlayer ply, List`1 parms)
    I'm getting this when I type /triviareload
     
  8. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    are the times in the config seconds?
     
  9. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    Yes
     
  10. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    If SEconomy is disabled and you don't have the plugin, it still checks for it and returns an error when you get the right answer. For example, "What's the capitol of Germany?"

    2014-01-04 14:01:17 - Commands: INFO: Wolfe executed: /a Berlin.
    2014-01-04 14:01:17 - Commands: ERROR: System.IO.FileNotFoundException: Could not load file or assembly 'Wolfje.Plugins.SEconomy, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    File name: 'Wolfje.Plugins.SEconomy, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null'
    at TRIVIA.Trivia.EndTrivia(CommandArgs args, Boolean CorrectAnswer)
    at TRIVIA.Trivia.Answer(CommandArgs args)
    at TShockAPI.Command.Run(String msg, TSPlayer ply, List`1 parms)

    Again, "GiveSEconomyCurrency": false,
     
  11. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    mmhm strange, i'll look into it
     
  12. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Sweet, nice work.
     
  13. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Seems if you answer the question after the time is up, you still get the reward.

    Atleast for seconomy you do anyway

    Also, a request.

    I want to space my questions maybe 10 minutes apart, so can you have a timer to repeart the qestuoin every x seconds or something incase no one gets it, so it doesnt get forgotten?

    that or add a command players can use you see the current question, if it has not yet been answered, and/or shows the time until the next quetsion
     
  14. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    Added about 150 more questions - thanks to Toastgenius
     
    • Like Like x 1
  15. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Can/did you add the a option to re-announce the requestion if it is unanswered every x seconds? similar to tp request?
     
  16. Ancientgods

    Plugin Developer Zero Day Plugin Author

    Joined:
    Sep 15, 2013
    Messages:
    712
    Updated for 1.2.3!
     
  17. IdeaEmpty

    IdeaEmpty Level 2

    Joined:
    Mar 28, 2012
    Messages:
    26
    answering correctly results in "command failed" I am not running SEcon. Does this still have problems for anyone else who is not running that plugin?
     
  18. taset5

    taset5 Level 1

    Joined:
    Mar 12, 2014
    Messages:
    6

    I can confirm this is the case for me as well.
     
  19. specialops0

    Plugin Developer

    Joined:
    Jul 29, 2013
    Messages:
    415
    Have you turned off the SEconom option in the config file?
     
  20. IdeaEmpty

    IdeaEmpty Level 2

    Joined:
    Mar 28, 2012
    Messages:
    26
    never turned it on. it is set to false.