Skip to main content

Config

ReferIO creates the config file ReferIO.cfg in your config folder.

ReferIO has multiple Config options:

referTimeout

The duration a timeout exists in seconds.
Default is 604800 seconds = one week.
Set to 0 do disable timeouts.

maxPendings

The maximum amount of pending requests a player can have.
Default is 5.
Set to 0 if you want do disable this limit.

maxRefers

The maximum amount of requests a player can generate overall.
Default is 10.
Set to 0 if you want do disable this limit.

playTimeUntilReward

The timespan in seconds the referred player has to be online until rewards get unlocked.
Default is 1800 seconds = 30 minutes.

rewardCommands

A list of commands that will be executed ("the reward"). Put your rewarding commands in here. The commands will be executed as the server. You can use %referer for the user that invited the new player and %referred for the new player. It doesn't matter if you use a slash at the beginning of a command or not.

Example:

S:rewardCommands <
give %referred minecraft:steak 1
/msg %referer %referred got his reward, thank you for increasing the community!
>

When this commands will be triggered you can be sure that the reffered player is online. The referer on the other hand might be offline. If you want a command to be run when the the referer is online for sure, use ? in front of your command.