[INACTIVE][FUN] Quiz v2.0 - Ingame quiz with score [617]

Discussion in 'Inactive/Unsupported Plugins' started by Kaimane, Apr 4, 2011.

  1. Offline

    Kaimane

    Quiz - Quiz:
    Version: v2.0

    Thanks to jascotty2 for cleaning up the worst code I have ever written and adding some cool new features.


    Request: http://forums.bukkit.org/threads/minecraft-quiz.10840/

    Allows you to create your own questions and set points for each question. These questions will be asked and answered in-game and points will be distributed to the players.

    Commands:
    /question - shows current question
    /a [answer] - Allows player to answer a question.
    /quizscore - Gives you the top 10 players.

    quiz.txt
    QUESTION|ANSWER1,ANSWER2,...,ANSWERn|POINTS

    Player gets point for any answer.

    Download Quiz (includes a sample quiz.txt)
    Quiz-2.0.zip (thanks to jascotty2)

    Older Versions:
    Quiz-1.1.zip
    Quiz-1.0.zip

    SourceCode (New and improved!)
    Quiz Source

    Example quiz.txt (open)

    Who is awesome?|Kaimane,The maker of this mod|100
    Is this a quiz?|Yes|5
    Does this question have a long answer?|It surely does,No|500



    Features:
    • create own questions with points
    • reduced points for partially correct answers
    • in-game highscore
    ToDo:

    • bot to ask questions with delay
    • multiple correct answers
    • prizes
    Changelog (open)

    Version 2.0
    Version 1.1
    • Fixed empty quiz.txt exception
    • Added multiple possible answers
    Version 1.0

    • Initial plugin release



    !!! IMPORTANT !!! Please post your quiz.txt, so other admins may add your questions to theirs.
     

    Attached Files:

    Lolmen likes this.
  2. Offline

    Kaimane

    Thanks for cleaning up my code :), I'll upload the new version in a minute.
     
  3. Offline

    Jacob Honoré

    Does this work with 670?
     
  4. Offline

    woodzy

    add icomany hook? maby a % of the score goes in to the payers wallet?
     
  5. Offline

    poke722

    Got an error when someone used /a

    Code:
    17:42:08 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'a' in plugin Quiz v2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NullPointerException
        at com.kaimane.QuizAnswerer.answerQuestion(QuizAnswerer.java:66)
        at com.kaimane.Quiz.onCommand(Quiz.java:79)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    Fixed it. I'm not sure how...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  6. Offline

    Plague

    considered inactive
    (and changelog has to show latest 2 changes without spoiler)
     
  7. Offline

    Zareh

    Sorry if I am asking a noobish question, but would you be able to give me an example on how to do a multiple choice question?
     
  8. Offline

    O_soldier

    Can I update it for the next craftbukkit (MC 1.7.3) ?
     
  9. Offline

    jascotty2

Share This Page