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.
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.
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?
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.
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?
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".
Yeah, the confirmation message would only appear for the new player's first login, after that, the message won't appear anymore.
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.
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
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.
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.
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.
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: 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.
Config looks good so far, you're adding rewards for both the recruiter and recruited, right? That's my goal for it hopefully
I'm also adding that if the recruiter is offline, that he/she will receive their rewards next time they are online.
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.
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.