Time Rewards is a light-weight plugin that will give players rewards or messages based on how long they've spent on your server. Example uses for this plugin could be an automatic rank upgrade after playing for so long, informational messages telling the player how long they've spent on your server, rewarding loyal players.
Features
- Multiple rewards for different time mile stones
- Custom commands such as /give or /pex can be used
- Broadcast custom messages when a player reaches a mile stone
- Send the player a message when they've been playing for x amount of time
Commands
| /timerewards reload | | Reload the config.yml |
Permissions
| timerewards.admin | | Allows the use of the /timerewards command |
Setup
Place the TimeRewards.jar in your plugins directory and reload/restart the server. Provided everything went okay a TimeRewards folder will be made in your plugins directory along with a config.yml and players.yml. Do not edit the players.yml file, this is for data storage only.
The config.yml generated offers a detailed explanation of how to configure a reward. The parameters available are listed here:
- time - The time in hours the player must of been online playing for to earn the reward. (Can be a decimal eg. 1.5 = 1 and a half hours.)
- message - The message sent to the player when they earn their reward. Use %player% for the player name. Set to "" for no message.
- broadcast - The message broadcast to the server. Use %player% for the player name. Set to "" for no message.
- command - The command executed by the console when the player earns their reward. Use %player% for player name.
Both message and broadcast both allows use of &[a-f]/[0-9] colour codes eg. &a or &3
To create multiple rewards simply copy the 'example' and change the parameters. Just remember to change the name from 'example' to something else.
Change Log
Version 1.0.0:
Source code: https://github.com/JoshArgent/TimeRewards