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.
@omgitsmit
I like that idea! 1. Players can have a set amount of invites or infinite. 2. There should also be an option to give set amount of invites every set time (ex: everyone month everyone gets 5 more invites) or never again. 3. Then also an option to change the refered players rank/perm set when he thanks whoever invited him. That will allow people to make their server invite only, give new players only the ability to use that command and when they use it they get membership.
These three features would be great. Make them all separate so server owners can enable/disable one, two, or all three.
@Kocacola97
Exactly. I only want friends of friends to be whitelisted on the server via redeeming referral codes through email.
@omgitsmit
So you want to have something like a closed beta server and you need a plugin for this? :)
@graveXrobber
If you tell me your problems/ideas in detail, I'll do my best to improve my plugin ;)
I want to use something like this to create an invite-only server. Players start with 1 invite code that can be emailed out and redeemed. That new player also has 1 invite that they can send out, so on and so on.
Web end is needing alot of work, alot of things dont work, for one, the completion of actually installing the panel, I would love this but it needs to be a bit better/futher developed.... looking forward to how good this can be.
Shot in the dark, but if anyone is using vBulletin and wants this implemented into your forum I will share. Your users in-game names and forum accounts will have to be the same tho. PM me if you want it.
@jbooker34
Yeah. On my preview page its already fixed too :D
@Kocacola97
No problem. Also, in loggedin.php under <!
Rewards> you got a small bug. People with exactly 10, 25, or no invites will get no rewards displayed. Do you see why?I'm gonna try this out, maybe if it works well i donate ;)
@Kocacola97
still cant get the website side of the plugin to work unfortunately.
The message i get is "Could not find database, but DB-User, DB-Password and DB-Host are correct" which makes no sense since i know the database works.
The only thing i can think of that may be causing this is possibly an error in the code or me inputting my database name in an incorrect format. All i am doing is typing in raf in the database box because thats the database i created using the cmd create database raf; in mysql
This plugin looks really cool and would love it if i could get it working so any further help on this would be much appreciated.
@jbooker34
I already changed the short tags for the next version because there were problems regarding this. I'm going to fix the problems. Also I'm going to add a new loginsystem, which adds an ingame verification.
Thanks for your feedback :)
A bit of advice for the php scripts: Do not use short tags (ex; <? ). It is disabled in php by default because its not a good practice, at all. I also found minor errors in a few places. Variables are being set before the if statement that they are meant to be in, this causes confusion in php, especially when you use a $_POST that has not been set yet like you do twice in modules.php. I don't know how its not throwing errors in your preview but it was for me. Also, "low server-usage through effective code"... Keep in mind php also uses system resources. I don't know how your java is but your php is not "effective". The short tags, the ", all these little things make it slow down. Of course, with a script that size, it wont be noticeable.
Other then that good work, keep it up. I will be using the java side of your plugin and creating my own web part to fit with my website. I don't need users registering twice, know what I mean?.
testing this plugin out now ... hopefully this saves me time from having to write my own.
@Tealk123
invite.php is for inviting somebody via email. Nothing is saved there.
the invite.php does not run
There is no entry created in the database
New version is on its way. If you tried the versions before, please use the update.php which is included in the new version, because the config.php and the tables were changed.
@gustebeast
It doesnt matter how the player was invited. If the invited player joins the server he can do
"/raf gustebeast" and you get a reward for inviting him.
Personally I do not fully understand the mail system, so I may be incorrect in my assumptions, but it semes like that would be a preety difficult way to refer people. I think people would like it much more to be able to simply tell their friends in person, or talk to someone else on another minecraft server. I have an idea that would allow people to use word of mouth instead of email while still making sure to prevent abusers, but if you want to keep this plugin a mail based system, I understand.
@Kryter1988
Yeah, in my dev-build its fixed. Will add a link soon :P
@fungreenfox
1) The german mail account was a fail by me. Next version this is fixxed. 2) More information about the hanging-page problem please 3) More information about the database-problems please
I'll do my best to help!
Haii,
i have a problem with the permissions.
i use essentials groupmanager and copy the permissions "- raf.use" in de groups.yml, but i can't use the command ingame: "You don't have the permissions to do that" and i'm OP/Owner
sry for my bad english, i can't speak so good english :D