Cron
Cron
Purpose
The Cron plugin mimics the well-known cron service from the Unix world and allows for scheduled command execution, both from a global table (crontab) and user crontabs. The commands are, whereever possible, executed in the context of the user as though they were executing them themselves.
Crontabs
Crontabs are saved in the crontabs/ folder. There is one global crontab file and one file for each user. Crontabs fave a form like this:
0 5 * * * say It is 5 o'clock
15 7 * * * goto Survival
This would mean: "Send the message It is 5 o'clock every day at 5:00 am" and "Teleport yourself to the world Survival every day at 7:15, e.g. when a war is carried out there".
See the Wikipedia article on the Unix cron service for more examples and details!
Commands
- /crontab list - lists al lcommands from the user crontab
- /crontab add - adds an entry to the crontab
- /crontab remove - removes an entry from the crontab
Permissions
- crontab.* - use the Cron system
Nice idea, but make sure it doesn't get executed if the player doesn't have ht permission. ("The commands are, -whereever possible-, executed in the context of the user..."
I would like it to be possible to run E.G
I would like to be able to have this command run for anyone with the permission: cron.dailycommand.Command1
Than anyone who had that perm would have that command run for them on a 24 hour basis
There were a couple plugins doing this but both seem to be pretty dead. :-\ Thanks for making this.