# Rewards - Rewards/Achievements
Rewards is an advance reward/achievement plugin. One goal of Rewards is to provide a diverse and easiest way to setup automatic rewards for server owners. Another goal is to provide APIs to allow developers modify and add functionality to the way Rewards works.
##Quick Guide
[spoiler=Quick Guide]
##Terminology
In order to understand this wiki there are terms you are going to need to know here is the list:
-
Reward Block - A section of the
rewards.conf
that contains arewards
Block and possibly another/other Block(s). -
Block - A section within the Reward Block that contains information about the Reward Block. For example the rewards Block which defines the rewards that a player would get for setting off this Reward Block.
-
Reward - The reward a player gets such as a permission group.
-
Test - A check a player has to pass in order to get a set of rewards.
-
Trigger - A trigger that is set off by a player doing an action and receives a set of rewards for doing that action.
##Settings.conf
The settings.conf
is where we need to start configuring Rewards. At the time of writing this settings.conf
has 3 values:
-
DEFAULT_INTERVAL
- The default of theinterval
variable for a Reward Block which defines the number of minutes thetests
Block is run for this Reward Block. -
DEFAULT_QUANTITY
- The default of thequantity
variable for a Reward Block which defines the number of times a player can receive this Reward Block -
DEBUG
- If set to true, this shows debug messages in the console.
##Basic Rewards.conf
RewardName {
rewards {
message="Sends a message to a player"
}
tests {
playtime=5
}
interval=1
quantity=1
}
The above is a basic rewards.conf
. Now let’s go over what all of this means:
-
RewardName
- A Reward Block with the name of “RewardName”. The name is used to keep track of quantity amounts. So don’t change this if you want quantity checking to work properly. NOTE: Since these are used for quantity tracking, Reward Block names need to be unique from each other. -
rewards
- This therewards
Block I have been talking about. Every Reward Block needs this. In this Block you define the rewards a player will get when he/she passes every test or sets off a trigger. In this case, the player would receive a message saying “Sends a message to a player”. -
tests
- This thetests
Block. The information in this Block defines checks a player has to pass in order to receive rewards. In this case, a player must have aplaytime
of 5 minutes in order to receive all the rewards in therewards
Block. -
interval
- This defines the number of minutes each test is checked for every player online. This value is only used when atests
Block is within the Reward Block (usually). -
quantity
- This defines the number of times a player can receive this Reward Block. Remember that the lookup is based on the name of the Reward Block.
For a more in-depth guide head over the Configuring rewards.conf page.
[/spoiler]
##Suggestions and Issues
If you find a bug or have a suggestion, please open a new issue with as much information on the suggestion or bug as you can. If there is not enough, information chances are I will probably ignore it. If you are having a hard time setting up the plugin, please post a reply here with your problem or question. I will help you as soon as I can.