Refer a Friend
REFER A FRIEND - ALPHA
Did you ever ask yourself if there might be a possibility to reward your players for inviting their friends?
The time to thank your players has come! Refer a friend adds exactly what you are looking for!
Refer a Friend allows to invite users via mail (removed causing problems) or link and rewards the player who invited a friend successfully.
Features:
- invite a player to your server via mail
- invite a player to your server via link (not yet!)
- register ingame or use existing accounts
- low server-usage through effective code
Requirements:
- webserver
- mysql database
- vault (optional)
Installation
- download and extract the zip archive
Server:
- upload raf.jar to your minecraft server and restart it
- configure the plugin (refer-a-friend/config.yml)
Webserver:
- upload the content of folder "webserver" to your webserver(into a folder your choice - e.g. "raf")
- open install.php with your browser (your.domain.com/RAF-FOLDER/install.php)
Commands:
- /raf <referrer>
- /raf reload
- /raf register <password> <email>
Permissions:
- raf.use
- raf.use.reload
ToDo
- System with a custom amount of available invites which are required to join a server (Invited players can invite other players and so on... -> closed beta like) [Can be enabled/disabled]
- The amount of invites available should be refillable (e.g. after time)
- Premium account check for invite system (just as an option)
- Use existing accounts (e.g. your forum accounts, authme registrations etc.) (authme done)
- Ingame account registration and verification (done)
- The more successful invites the better rewards
- Link invitation (done)
Current language files for next update
- English (done)
- German (done)
- French (done)
- Spain (done)
- Polish (done)
- Italian (done)
Support
English / German
You can get english and german support from me if you send me a pm.
@Nirzhuk
I will add a new folder in the next version. (manual installation or something). If the new feature doesnt make too much trouble, I'll release a new version today.
@Kocacola97
You can put a config.php and .sql for manual install? I can't generate the f*cking config and database... don't error don't generate D:
@Kocacola97
MyBB and WBB whould be nice.
Vielleicht könntest du zunächst auch noch eine Option hinzufügen das man nur alle drei geworbenen User den Reward bekommt oder das man je mehr User man geworben hat bessere Reward bekommt (z.B. bei 3 Geworbenen: Diamant; bei 7 Geworbenen Dia Spitzhacke usw.) Auch schön wäre wenn der User der geworben hat, den Reward nicht sofort bekommt, sondern der Geworbene erst eine gewisse Spielzeit haben muss. LG wavecom
Added AuthMe account usage so far (only if you use mysql). Maybe I'll add xAuth tomorrow. Which functions should I add for existing account usage next? (Lets say xAuth and AuthMe are already done!)
@Nirzhuk
upload everthing and open install.php with your browser. If you fill in the correct connection, it will create a config
@Kocacola97
When I try install I can't connect with SQL, I write correctly the config and IP.
You can make the beta closed system? 1 Beta member can invite 2 other people.
@jbooker34
refer.php saves the name of the command you perform to thank a player when he invited you. (/raf Kocacola97 -> refer.php)
reward.php checks if there were successful invites. Its called on player join.
@Nirzhuk
You've to choose a key yourself ;)
Random key don't generate D:
What do the files in webserver/server/ do? I can see what reward.php does, I think, but what about refer.php?
@Kocacola97
I saw that you added that! I must have missed it. I also noticed the new votes you put up on this page :)
One thing you're missing though, is a donation link for all your hard work!
@omgitsmit
As you can see I added a small todo list and listed the features/suggestions which seemed to be useful/interesting. Did I forget something? :s
@jbooker34
I run an offline-mode server that requires users to secure their accounts with a password (AuthMe). It would nice to be able to have non-premium accounts on that page as well :)
@Kocacola97
Kocacola97, a new todo list would be neat to see after all of these suggestions. Keep up the good work! This is the only plugin of its type :)
@jbooker34
I think I wont add this at the moment. For me its not important... sorry. When you add a function yourself, you should do it in another file. If I release a new update, its easier for you to implement your function again :-)
I would love to see all those features on your new todo list! Another idea for you; I just found out how to verify username is a premium minecraft account in php, I use it on my registration page. :) You could add an option to verify that the player being invited is a minecraft premium account. http://www.minecraftforum.net/topic/1469599-premium-account-validation-script/ You could also add it to your registration like I did, I'm sure people would like that. I'm about to add it myself. Its not like non-premium users will be playing anyway, why let people invite them? :P
I was just exited I found that and thought I would share. :D
@jbooker34
This is the solution i'd have used for the "closed beta system" ^.^
@Kocacola97
Forget 3. I got a better way: Make it so when player is invited, player is also added to the whitelist, if the server is whitelisted - Or - Players are greylisted until they thank whoever invited them
@Kocacola97
Ja kannst du machen. Wäre cool.
@jbooker34
I will try to add those features in the future. I didnt really understand 3. :s
@wavecom
Ich könnte eine mysql-funktion einbauen, mit der man einen anderen table fürs Login nutzt, damit alle etwas davon haben. Verschlüsselung demnach natürlich auch ^.^
This is awesome! Thank you. Im using this Plugin with AuthMe so my Users can log in with their Server Accounts. If someone is interested in the code: http://pastebin.com/BxiizSnN Sry for my bad English. I'm from Germany :D