*** question and answer plugin ***

Discussion in 'Archived: Plugin Requests' started by myrrdin777, Jan 13, 2014.

  1. Offline

    myrrdin777

    Hi, sorry for my bad english, but I hope, u will understand what i'm saying.
    So, I need simple plugin, that after some time broadcast custom question and when player answer, hi receives prize like money or items. Can someone create this plugin or give link to bukkit, cuz i don't find it :/
     
  2. @myrrdin777 not even a bad idea :D I could actually do it, but I would start tomorrow.

    myrrdin777 Actually, I need more informations. Do you want that the question will be broadcasted only once or randomly choosen? If yes, you will probably maybe sometimes get one same question 2x in a row.
    With once I mean a list where you have for example 30 questions and for every you have set other prices and when the plugin broadcasts those 30 questions it stops broadcasting.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
    myrrdin777 likes this.
  3. Offline

    myrrdin777

    Lionhard I think it will be better if i create 30 questions and it will be broadcasting randomly every 10 min and it never stops.
    For every question it will be custom rewards.

    @Lionhard How long does it takes?
     
  4. Offline

    timtower Administrator Administrator Moderator

    myrrdin777 Please don't bump within 24 hours
    And try the tahg button, then Lionhard will get notified
     
  5. myrrdin777 Oh, sorry, didn't see your message. Okay, I will do it so you can add as many questions as you want and as many answers as you want and different rewards for different answers, Okay? (You can just add 1 answer with 1 reward, if you want only 1 answer. or 3 answers, with same rewards if you want it that way.). But, It's late now again, so I will continue it tomorrow ok? ;)
     
  6. Offline

    myrrdin777

    @myrrdin777 Ok, thanks.

    LionHard can't create this plugin. Someone can? please :D
     
  7. Offline

    cnniillaa

    [quey reote="myrrdin777, post: 2180261, member: 90893076"]LionHard can't create this plugin. Someone can? please :D[/quote]

    Well so as i understand you want a plugin that broadcasts a message?? and when they reply it gives them a reward?
     
  8. Offline

    AndyMcB1

    Does Java have a function for strings which is ~ (close to, appox)?

    Example:
    [BROADCAST] Who was the creator of Minecraft?

    BillyTheKid: Was it Notch?

    (whereas the config actually just has it as "Notch" or "It's Notch")

    Now that I'm typing this I guess just parse the string and look for the crucial word (is this case "Notch".lowercase) <- that might only be a Ruby thing.. Can't remember.
     
  9. Offline

    timtower Administrator Administrator Moderator

    AndyMcB1 "Notch".toLowerCase() ( I think )
    And not sure about the close, appox stuff
     
  10. Offline

    AndyMcB1

    Oh cool! I though java would've worked this so:
    Code:java
    1. String notch = "Notch";
    2.  
    3. notch = System.ToLowerCase(notch);
     
  11. Offline

    Axanite

    I guess you could use like .contains? or is that only for arraylists and all that?
     
  12. Offline

    timtower Administrator Administrator Moderator

    Contains was case sensitive ( I think ).
    Using a list of words to check is easier anyways
     
  13. Offline

    myrrdin777

  14. Offline

    timtower Administrator Administrator Moderator

  15. Offline

    myrrdin777

    @timtower thanks, but I waited for 10 minuts and nothing happened. Server doesn't broadcasting questions ._.
     
  16. Offline

    timtower Administrator Administrator Moderator

    Misread request, with this you can put questions in the config and the plugin will auto respond
     
  17. Offline

    myrrdin777

    @timtower what? :3 Like I said my english is bad, so can you explain it more easeful?
     
  18. Offline

    timtower Administrator Administrator Moderator

    First, try using the tahg or reply button, I don't get notifications when you put an "@" and then a link to my profile.
    Second: It lets the server respond to certain keywords in the chat
     
    Garris0n likes this.
  19. Offline

    myrrdin777

    So? But I need that server broadcast question and when someone answer it he get reward :?
     
  20. Offline

    timtower Administrator Administrator Moderator

    Already got that, had this laying around
     
  21. Offline

    myrrdin777

    Hmm... I don't understand how to use this or this plugin doesn't do what I want :3
    Can you create like this?

    [​IMG]
     
  22. Offline

    timtower Administrator Administrator Moderator

    myrrdin777 It just doesn't do what you want. And don't have the time / don't feel like creating that
     
  23. Offline

    platyperson

    you might find .split useful
    i.e.:
    Code:java
    1. String hello = "Hello World";
    2. String world[] = hello.split;
    3. System.out.print(hello[1]);

    The result: Hello
     
  24. Offline

    myrrdin777

    bump
    <Removed double post - Bumping is allowed only every 24 hours - Necrodoom>
     
  25. Offline

    Carnivore

  26. Offline

    myrrdin777


    omg, thanks Lion :D
    Questions broadcasting randomly? Can u make it in a row? and if it is easy can u add /Qaa reload?

    EDIT: And I think it's not working :3
    [​IMG]


    Aaaannnnddd what permission are for players?
    [​IMG]
     
  27. Offline

    Carnivore

    Aww sorry I forgot to tell you, there's a command to answer. That's for not confusing the chat messages with the answers to the running quizz. What you should type is "/answer creeper" to answer the question.

    I also updated the plugin with a /qaa reload command for people with the qaa.reload permission node and added a configuration option for the order you want to output questions. The two options for the configuration node "order" are "random" and "cyclic".

    The download link should be the same. Delete the configuration file to reset to the new default.
     
  28. Offline

    myrrdin777


    But.. :oops: Can you make that players can answer without "/answer"or at least change /answer to "/ats" becouse in lithuanian answer means "atsakymas".
     
  29. Offline

    Carnivore

    I added an "ats" alias to the /answer command, but usually you'd want to have a plugin which handles aliases for you.
     

Share This Page