[INACTIVE][FUN] Trivia v1.5 [477]

Discussion in 'Inactive/Unsupported Plugins' started by blaatz0r, Jan 22, 2011.

  1. Offline


    Current release: 1.5

    Old releases: 1.3 | 1.21 | 1.2 | 1.11 | 1.1 | 1.0

    This is my first plugin, I made it to get a basic understanding of Bukkit and to refresh my Java skills a bit.

    Trivia is quiz game where players can answer questions by typing in the answer to a question.
    The player receives points for each correct answer and/or optionally a random item.
    Every 15 seconds or so a hint is given to make it a bit easier, but the answer will be worth less points for each hint!


    - Support for Permissions plugin.
    - Fully automatic question system. Trivia reads all questions from text files when the plugin is enabled and randomly selects a new question when needed. Easy to make new questions!
    - Award points or random items to players for answering questions.
    - Shows how fast a player answered the question.
    - A player ranking is stored in a SQLite database.
    - Allows players to ask hints and skip questions.
    - Players can enable or disable Trivia messages whenever they want.
    - Players can vote to skip the current question (majority vote)
    - Super sexy command handling
    - Ops can load question files in game
    - Everything is configurable through a config file.

    - Install the Permissions plugin.
    - Download Trivia here and put it in your /plugins/ directory.
    - Create a folder called 'lib' in your craftbukkit directory (so it looks like this) and put this file in it (this is the database driver).

    If you run Trivia now, the console will tell you that you don't have any questions yet.
    Put your questions files in the /plugins/Trivia/questions/ directory (by default) and from within Minecraft, use the commands /trivia load to load the questions and /trivia start to start playing (op status required).

    See the section below on how to make question files. Two example files can be found here:
    - questions.txt (5000 general questions)
    - scramble.txt (800 scramble words, see below)

    A configuration file was also generated at /plugins/Trivia/Trivia.yml. Edit the settings to your liking. See the section on configuration below for options.

    /trivia - enables or disabled Trivia messages for you
    /trivia help - shows the Trivia help menu
    /trivia top - shows the top 5 player scores
    /trivia rank - shows your player rank and score
    /votenext - calls a vote to skip the current question, requires majority vote
    /next - skips to the next question (need permission or be op)
    /hint - shows another hint
    Ops only:
    /trivia admin - shows you all admin commands
    /trivia start - starts Trivia
    /trivia stop - stops Trivia
    /trivia restart - stops and then starts Trivia
    /trivia load - reloads all files in Trivia/questions directory
    /trivia add [file] - adds the file to the questions
    Nearly everything can be configured in Trivia.yml:
    timer - the amount of time between two hints
    time-out - the amount of time between two questions, if the answer was not given
    max-hints - the maximum number of hints for a question
    reward-points - (true|false) - specify whether you want players to receive points for correct answers
    reward-items - (true|false) - specify whether you want players to receive a random item for correct answers (see items)
    points - the number of points awarded for each correct answer
    decrease - the number of points deducted per hint from the points reward
    items - list of item ID's, one of these items is randomly given to the player for a correct answer (if reward-items is true)
    db-name - the name of the database file
    questions-dir - the directory that contains your Trivia questions
    letters-per-hint - one letter will be revealed per hint for this many letters in the answer
    Permission nodes:
    Add the following to your plugins/Permissions/config.yml:

    - 'Trivia.play'
    - 'Trivia.hint'
    - 'Trivia.top'
    - 'Trivia.rank'
    - 'Trivia.vote'
    - 'Trivia.startvote'
    Admin (no need to add this, only if you want to give admin rights to individual users):
    - 'Trivia.next'
    - 'Trivia.admin.help'
    - 'Trivia.admin.add'
    - 'Trivia.admin.load'
    - 'Trivia.admin.start'
    - 'Trivia.admin.stop'
    - 'Trivia.admin.restart'
    Adding questions:
    You can manually add questions to Trivia by editing the text files in your plugins/Trivia/questions directory. Trivia will read all files in this directory on start-up.

    You should add one question per line, in the form of:

    So for example:

    What is the average air speed velocity of an unladen swallow?*9001
    Answers are not case sensitive.

    Get extra questions here: M1sT3rM4n

    Scramble questions:
    A special type of question is the Scramble question: the letters of a word a scrambled and the player has to figure out the original word. Trivia randomizes the answer for you, so you don't have to provide the question. Scramble question have a special syntax:

    See scramble.txt for examples.

    Known bugs:
    - Sometimes gives an error 'String Index out Of Range 72' or something alike. Working on it..
    - Ranking is bugged if you are not in the database yet

    To do:
    - Fix index out of range bug
    - Add in game loading of questions
    - Add permissions
    - Integrate with iConomy


    01/03/11: v1.5
    • Working with latest Craftbukkit: updated package structure and commands execution.
    • Source now available on GitHub!
    27/01/11: v1.3
    • Permissions support - check section on Permissions above for configuration. Old Trivia.yml file should still work.
    26/01/11: v1.21
    • Changed messages a bit, now hopefully the client breaks less often.
    25/01/11: v1.2
    • Important for new installations: From now on, the downloadable versions of Trivia only include the JAR file. Question files should be downloaded and added manually when you 're doing a fresh installation. Old versions still work as they used to.
    • Trivia is now way more robust!
      • The console will show warnings and instructions when you try to start Trivia without questions available.
      • Recoded a lot of stuff internally, better handling of questions
    • Ops can use /trivia stop and /trivia stop from within Minecraft to pause Trivia. When Trivia is not running, players can still use all commands (help, rank, top) but not /next or /votenext
    24/01/11: v1.11
    • Tried fixing chat event monitors which caused Trivia to break because of other plugins.
    • You need to download this file and put it in a directory called 'lib' in your craftbukkit folder.
    23/01/11: v1.1
    • Super sexy command handling thx to Zenexer
    • Added vote to skip question
    • Added in game question file loading
    • Added commands /trivia load, /trivia add, /votenext
    • Added op permissions to /next, /load
    • Fixed questions.txt, now all questions have correct syntax
    22/01/11: v1.0
    Dutchy and M1sT3rM4n like this.
  2. Offline


    Just wanted to say, since the fix we've had NO problems with this plugin.

    This plugin is awesome, and keeps us occupied for hours. Thanks a lot.
  3. Offline


    u think on game play only ppl who know english?
  4. Offline



    Could you possibly add support for the Stats plugin :D

    I would love to give users achievements for hitting 500, 1000, etc Trivia points!

    Not a huge deal, but hey it would be nice to have the two work together.
    razoreqx likes this.
  5. Offline


    Is there any chance someone has made or is willing to make some easier, more general knowledge questions? It seems like all the ones provided in this thread are too hard and they are about stuff my friends and i have never heard of.
  6. Offline


    can you add support iConomy ? of switch about point or iConomy money.
    i think it's great.
    thank you about very nice plugin. :)
    razoreqx likes this.
  7. Offline


  8. Offline


    working on it ;)
  9. Offline


    Thank you.
  10. Offline


  11. Offline


    any ideas?
  12. Offline


    That's a problem with the permissions plugin. Could be that either Trivia or you are using an outdated version.
  13. Offline


    Is there somebody who can make a trivia question generator applet? Such as you type in the question in the question box and you type in the answer in the answer box and then it appends it to a text file?

    That would be great!
  14. Offline


    ahh yep, added a user incorrectly
  15. Offline


    --- merged: Feb 6, 2011 4:33 AM ---
    Bumpin more
    --- merged: Feb 8, 2011 1:38 AM ---
  16. Offline


    hey great plugin!

    i had a functionality idea for you!
    (excuse if i just haven't figured how to do this yet!)

    loadup trivia exclusive lists of Qs via /trivia command
    /trivia question1 <-loads question1.txt (and question1.txt only)

    like /load + /add combined, i guess.
    wipes current list of trivia, then loads .txt, then starts.
    useful for quickly loading and running different sets of questions.

    again excuse me if you've already provided this functionality! great job!
  17. Offline


    can i use for admin trivia.*' or does it not work :(
  18. Offline


    Feature Request:
    I think it would be the bomb if you could have iConomy support. I.E.: Give monies for answering questions or giving monies for answering the most questions in a time frame.

    Just an idea.!
  19. Offline


    Seems like this build is good and broken now...any hopes of reviving this awesome little gem?
  20. Offline


    I've notified the author that it is broken in the latest release, we will make sure it's working again soon :)
  21. Offline


    Trivia is up to date again. :)
    M1sT3rM4n likes this.
  22. Offline


    15:57:14 [INFO] Trivia 1.5 enabled
    15:57:14 [INFO] [Trivia] loaded questions from [questions.txt, scramble.txt]
    15:57:14 [SEVERE] null loading General v2.2 (Is it up to date?)
            at nl.blaatz0r.Trivia.Trivia.onEnable(Trivia.java:102)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
            at com.nijikokun.cjcfork.bukkit.General.iListen.setupCmds(iListen.java:1
            at com.nijikokun.cjcfork.bukkit.General.General.onEnable(General.java:12
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:205)
  23. Offline


    This mods works good, the text comes up, but when you answer it it doesn't accept your answer.
    It just ignores what you are saying...

    Is there something else I need to do? it would be very nice to get this mod working for when you want to do something because you can't be bothered digging anymore or making anything else.
  24. Offline


    Hello, on my server the vote next seems to be unusable. We were three people. If one of us typed /votenext the message came, that the vote started. But if somebody then typed /votenext it said, that the person have no permission to start a vote? (But this person could start a vote).

  25. Offline


    =( I loved trivia.
  26. Offline


  27. Offline


    no updates? - any other trivia plugins out therE?
  28. Offline


    I'm working on a reloaded version of this :3 I'll release in a few days.

Share This Page