How'd you hear about us?

Discussion in 'Archived: Plugin Requests' started by josip1, Feb 22, 2012.

  1. Offline

    josip1

    Hi guys

    Basically I'd like a plugin where it will ask a player everytime you they log on till they answer it how they found out about our server.

    Once they answer it's recorded in a log and they are rewarded with an amount of iconomy money.
    After that they are never asked again.

    As for admin commands, none are needed nor are permissions.

    I just need it to generate cleanly in a log

    Could anyone do this?
     
  2. Offline

    Sanzennin

    Hmm, you still need a permission node that is defaulted to true.
    Well, anyways, that shouldn't be too hard, but too busy atm.
     
  3. Offline

    turt2live

    What do you mean by "cleanly in a log"?
    Do you need it to regenerate a log that says something like:
    or...?
     
  4. Offline

    josip1

    Doesn't even have to be that complicated.

    User1 says: bla
    User2 says: bla

    I don't mind reading through it.
     
  5. Offline

    turt2live

    I'll do my best, ETA is unknown because of work :/
     
  6. Offline

    josip1

    Awesome! :D
     
  7. Offline

    turt2live

    DOWNLOAD

    Commands:
    /wdyhau <source> - Sends a 'Where did you hear about us' source message
    /wdyhaurl - Reloads the configuration

    Permissions:
    wdyhau.exempt - Will never show message on login
    wdyhau.reload - Allows use of /wdyhaurl

    Configuration:
    'reward' - The amount to give to the player when they submit (0 to disable)

    The sources list is stored in /plugins/Where Did You Hear About Us/sources.txt
    The plugin REQUIRES Vault (get it here)

    Let me know if you have any issues, this plugin will work in R5/1.2
     
  8. Offline

    josip1

    The file in responders is created, But it does not get filled...i'd prefer if it was just 1 txt file with all responses...but if you cant do that it would be ok.

    Also it seems they can redo the where did you hear about us thing, so reward can just keep coming....

    Also it would be good if a message just comes up everytime they log in reminding them till they do it.
     
  9. Offline

    turt2live

    The files in responders is a placeholder (bad code, I will fix later) to determine if they responded. (If the file is there, they responded, otherwise they didn't).

    The responses are stored in "sources.txt" in /plugins/Where Did You Hear About Us/

    The reward may keep coming because you may have accidently removed the responders files (as mentioned above)

    And it does tell them each time they login.
     

Share This Page