CommandScheduler is a plugin for Sponge servers that give you the possibility to schedule your commands on a regular schedule. The format used is cron.
For more information about how to use this plugin, click here.
* * * * * * *
| | | | | | |
| | | | | | +-- Year (range: Current year-3000)
| | | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | | +------ Month of the Year (range: 1-12)
| | | +-------- Day of the Month (range: 1-31)
| | +---------- Hour (range: 0-23)
| +------------ Minute (range: 0-59)
+-------------- Second (range: 0-59)
Examples
* * * * * * * econ add 1 djxy (Add 1 dollar to djxy's bank account each second)
0 * * * * * * time 1000 (Set the time to 1000 ticks each minute)
0 */15 * * * * * heal djxy (Heal djxy each 15 minutes)
0 */15 * * * 6,7 * broadcast This is the server. (Broadcast "This is the server." each 15 minutes if it's the weekend)
Commands
/commandscheduler reload - Reload the config file.
/cs reload - Reload the config file.
Permissions
commandscheduler.reload - Can reload the config file.
By the way, is there a way to have like a list of commands be executed on a set interval?
For example: interval 10 minutes
“/broadcast Happy hour will start in 10 minutes”
“/hh start”
“/broadcast example broadcast2”
Every interval of 10 minutes one will be executed in order, how do I do that
that would make it execute the first command every 50th minute, second command every hour and third command every 10th minute right? Hmmmm interesting way to do it, thanks