Refer a Friend (Unique Idea)

Discussion in 'Archived: Plugin Requests' started by dddylan98, Aug 30, 2014.

  1. Offline

    dddylan98

    Plugin category: Economy/Miscellaneous

    Suggested name: Recruitment

    What I want: A plugin that allows a user to be able to obtain rewards for recruiting a friend to the server.

    The basic concept: When a player wants to recruit their friend, they can do a simple command such as "/recruit dddylan98", and when that player logs into the game for the first time, they will automatically be rewarded for it, both the recruiter and recruited.

    Why is this unique? It can prevent people from saying, "Hey, let me recruit you and we get free stuff!" every time an admin isn't online.

    How could this be done? I believe it could be easily done by adding a table into a file (possibly a .db) formatted like this:

    Recruiter | Recruited
    dddylan98 | dylansfriend

    When dylansfriend logs into the server for the first time, it can run through that list and see if his name is on there. If it is, reward both dddylan98 and dylansfriend.

    Stopping excessive recruitment: This could be a problem seeing as someone may be able to setup a random name generator and send out millions recruitments and get every possible combination (although it would be a huge thing for them to do), you could limit the recruitments to say, 5 an hour or so. It could be configurable!

    Additional ideas for a later version: Access to hook up the table to a MySQL database.

    Note: The basic is all I really request, the rest is just ideas. The basic just giving rewards when a user logs on if their name is on the list.

    Ideas for commands: /recruit dddylan98
    /recruit reload (I hate having to reload the entire server when I'm configuring a little plugin.)

    Ideas for permissions: recruit.recruiter
    recruit.reload

    When I'd like it by: As soon as possible.
     
  2. Offline

    xMakerx

    I like the idea. Not saying that I am going to work on it, but I might think about it.
     
  3. Offline

    dddylan98

    Awesome, I can see some flaws in the idea. Such as the player who was recruiting would have to know to do this command before they joined. Server owners can advertise the command though to make it obvious that it's there.
     
  4. Offline

    xMakerx


    dddylan98
    Something that just occurred to me is that, what if someone gets a hold of a random name of a person they don't know, could I add a code generation or something? The recruiter would generate a friend code, and the recruitee would redeem said code?
     
  5. Offline

    dddylan98

    Then again, that means that once they're in the game, anyone can send them a message saying "hey, use this code". That's the main goal with my idea is that people can't do that.

    Unless the code is unique for every recruitment process, then I could see that working. But the chances of someone getting a random name, and then that random name joining would be very low. That is where the capping how often they can recruit could come into play.
     
  6. Offline

    xMakerx

    dddylan98

    Scrap that then. How about when a new recruitee has joined, it will ask them if they know who has claimed to be recruiting them?
     
  7. Offline

    dddylan98

    That would work, if you're still having it being checked the first time they log in. Then if they were joining with a friend, they'd see that and know what it is. Where as if it was a random, they would be like "what is this? no".
     
  8. Offline

    xMakerx


    Yeah, the confirmation message would only appear for the new player's first login, after that, the message won't appear anymore.
     
  9. Offline

    dddylan98

    Good ideas coming here, if you're willing and wanting to make this plugin, go for it! I'm sure it wouldn't be too too difficult to do.
     
  10. Offline

    xMakerx

    dddylan98

    I'll work on this once I have my Slender minigame plugin completed.
     
  11. Offline

    dddylan98

    Cool! :D Good luck!
     
  12. Offline

    Dashdart

    dddylan98 xMakerx You could ban somebody from referring a friend who has logged on on the same ip address to prevent somebody who say has 10 minecraft accounts from referring themselves. Just a suggestion
     
  13. Dashdart Good suggestion, what if they have a family and 3 of them play minecraft and they all want to play on that server. It would be first come first serve.
     
  14. Offline

    dddylan98

    I know my sister has an account and we play on servers together, that would flag us. Cap it off at like 2 per IP maybe, something like that.
     
  15. dddylan98 I would also recommend you make a thread on your forums (if you have one) where people can request to get another person on just incase more than 2 people play on that ip.
     
  16. Offline

    dentych

  17. Offline

    xMakerx

    bwfcwalshy
    I think that the max for "siblings" or fake accounts on the same IP should be 4, but configurable. I can confirm that I will be the developer on this plugin.

    I've started work on this, here is the config so far:
    [​IMG]
    Currently, you can give items, execute commands, and give money. @p is the name of the player being rewarded. This setup currently gives 6 Diamonds, 4 Apples, 2 Black Wool, sets my gamemode to survival, gives me kit Tools, a diamond chestplate with the name Protection, and $8000.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  18. Offline

    dddylan98

    Config looks good so far, you're adding rewards for both the recruiter and recruited, right? That's my goal for it hopefully :)
     
  19. Offline

    xMakerx


    Yeah, the recruiter and the recruitee get the same rewards.
     
  20. xMakerx Looking good, got an estimated time of completion?
     
  21. Offline

    xMakerx


    It should be done by Monday morning. Right now it's 2AM Monday here.
     
  22. xMakerx Oh great would love this on my server.
     
  23. Offline

    xMakerx


    I'm also adding that if the recruiter is offline, that he/she will receive their rewards next time they are online.
     
  24. xMakerx Good idea storing it in a Yaml file?
     
  25. Offline

    xMakerx

    Yes, I am storing the following information to a yaml file:
    • If a player was invited.
    • How many people a player has recruited.
    • Who recruited a player if anyone.
    • Pending invites.
    • Pending rewards.
     
  26. xMakerx This would be good sent to MySql servers could put this on websites.

    They could do like the person who has recruited the most people in a month get a reward.
     
  27. Offline

    dddylan98



    Monday as in today, September 1st or September 8th?
     
  28. Offline

    xMakerx


    I meant late Tuesday morning. I was tired, sorry. Tuesday as in the 2nd. Around 2AM.
     
  29. Offline

    dddylan98

    Any update on this?
     
  30. Offline

    xMakerx


    Been busy with school, my apologizes. I'll resume work on the plugin this weekend.
     

Share This Page