You get rewards for being online,
If a player leaves and then joins the server then their online time becomes 0,
So you get rewards for being online for a certian time, and the time reset everytime the player leaves the server.
basic formal for rewards.yml
Code (YAML):
<id>:
time
: 10
#Time in seconds
description
: testing
#The Text you will see when the player uses the online command
type
: COMMAND
#use this everytime, do not forgot about this
command
: say hello world
#what ever command you want to act when the player reacts a certain time, PlaceholderAPI supported
example for adding reward, using rewards.yml
Code (Text):
money:
time: 600
description: $1,000
type: COMMAND
command: eco give %player_name% 1000
xp:
time: 300
description: Get 1,000 xp points
type: COMMAND
command: xp give %player_name% 1000
This plugin has few commands:
/online - this shows the time the player is online for, and the rewards list
/online <player_name> - tihs shows the time of the player who he has selected and the rewards list
/online reload - loads the rewards from rewards.yml, the player needs to be OP to use this command
If you want any kind of support for the plugin or any feature added then ask in my discord server: https://discord.gg/8RNbpwh