Cron Library
This plugin will help developers to use crontab expressions for their scheduled works with world clock. For example you want to call a function @ 12 AM Everyday you just need to use following code.
oxidemod.org
This plugin will help developers to use crontab expressions for their scheduled works with world clock. For example you want to call a function @ 12 AM Everyday you just need to use following code.
Code
Code:
[PluginReference] Plugin CronLibrary;
CronLibrary?.CallHook("RegisterCron", true, "0 0 * * *", () => MyFunction());
void MyFunction()
{
Puts("Time is {0}", DateTime.UtcNow.ToString());
}
Code
Code:
* * * * *
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)...
Original publisher cover.
Archived release
Feramor’sCronLibrary.cs, version 1.0.2. Compatibility with current Rust servers has not been tested.