Uploader's note:
------------------------------
Some, if not most, of the resources I share are those that I have purchased myself. Not only that, but I put effort in providing these leaks and do not demand for anything. I simply ask that you return the favor by using the Adfly link provided.
Thanks and happy leaking!
Thanks and happy leaking!



Refer is a plugin made to increase your server's popularity. If you have ever seen a refer-a-friend function on a website, this is a similar concept, but much more user friendly and rewarding.

Let's assume we have three players - Bob, Jim and Dave. Bob has been playing on the server for a while, and decides he wants to earn a reward for referencing. He has two friends named Jim and Dave, and he invites them onto the server. When they arrive, Bob opens the Refer GUI, and selects request to ask Jim and Dave to refer him since he brought them on. They both open the Refer GUI and refer Bob. Bob gains rewards for bringing people online, and the server now has two new players. Note that Jim and Dave cannot refer anyone anymore, but they can still be referred to gain rewards.

- Easy to use GUI
- Disallows players from referring multiple times
- Extremely configurable
- Add as many rewards as you like
- Economy support
- Add messages, sounds, commands, etc.
- Edit all messages
- Logs each reference
- Request a reference from a player
- Balance checking
- And more!

/Refer
- Brings up the Refer GUI
-- Permission: refer.use
/Refer admin
- Brings up the Refer-Admin GUI
-- Permission: refer.admin

When opened, the GUI looks like this:

Gif version: http://imgur.com/WAibsRZ
Selecting the emerald will allow you to refer the player who brought you to the server if you haven't already.
Hovering over the diamond will show you your current balance of references.
Selecting the gold bar will allow you to request a reference from a player if you brought them to the server.

Refer is an extremely configurable plugin - every single message is configurable, you can add as many or as little rewards as you want, and you can add economy support to your rewards if you wish to do so.
This is an explained config.yml file:
More readable version.
This is an example of the messages.yml file, where you can customise every message in the plugin:
The plugin also includes a log of every reference in the file log.txt, in the format:
{UUID_Player1} - {Name_Player1} referred {Name_Player2} - {UUID_Player2}

To access the Refer API, you must first add Refer.jar as an external library. In your onEnable () method you should include:
Code (Text):
Code:
//Check if refer is installed
if (getServer().getPluginManager().getPlugin("Refer") == null) {
//If Refer is null, Refer is not installed.
getServer().getPluginManager().disablePlugin(this);
}
Code (Text):
Code:
//Examples
private void doThings () {
//Get a player's amount of references
OfflinePlayer getOfflinePlayerReferences;
int playerReferences = ReferAPI.getRefer(getOfflinePlayerReferences);
//OR
Player getPlayerReferences;
int playerReferences2 = ReferAPI.getRefer(getPlayerReferences);
//Check if player has referred before
OfflinePlayer offlinePlayerHasReferredBefore;
boolean playerHasReferredBefore = ReferAPI.hasPlayerReferredBefore(offlinePlayerHasReferredBefore);
//OR
Player onlinePlayerHasReferredBefore;
boolean playerHasReferredBefore2 = ReferAPI.hasPlayerReferredBefore(onlinePlayerHasReferredBefore);
//Refer two players
Player playerWhoIsReferring;
Player playerWhoIsBeingReferred;
ReferAPI.refer(playerWhoIsReferring, playerWhoIsBeingReferred);
//Open the refer GUI to a player
Player openGUITo;
ReferAPI.openReferGUI(openGUITo);
}

Please read the Terms and Conditions before purchasing Refer:
Terms and Conditions:
- By purchasing Refer you are agreeing to the Terms and Conditions.
- You may not -Redacted- Refer.
- You may use Refer on one server or network only.
- You may not place a negative review about a problem before sending a PM about it first.
- There are no refunds.

- play.superiorcraftmc.com
- play.firesoftitan.com
- play.crucialmc.com
- play.opasylum.com
- s20.minespan.com:25588
- 192.99.44.125:27562
- play.cylestialcraft.com
Have a good day!