CmdScheduler is a plugin for PocketMine-MP 5, It performs processing of CRON expressions when due will execute 1 scheduled instruction.
- CmdScheduler helps create a specific schedule in an easy to understand way such as: every minute, hour, day, week, month, ... to execute the command.
- In addition, CmdScheduler can also execute 3 types of commands: ConsoleCommand, Shell and Script.
- CRON expressions
- Execute command: Console, Shell, Script
A CRON expression is a string representing the schedule for a particular command to execute. The parts of a CRON schedule are as follows:
* * * * *
- - - - -
| | | | |
| | | | |
| | | | +----- day of week (0 - 7) (Sunday=0 or 7)
| | | +---------- month (1 - 12)
| | +--------------- day of month (1 - 31)
| +-------------------- hour (0 - 23)
+------------------------- min (0 - 59)
This plugin also supports a few macros:
@yearly
,@annually
- Run once a year, midnight, Jan. 1 -0 0 1 1 *
@monthly
- Run once a month, midnight, first of month -0 0 1 * *
@weekly
- Run once a week, midnight on Sun -0 0 * * 0
@daily
,@midnight
- Run once a day, midnight -0 0 * * *
@hourly
- Run once an hour, first minute -0 * * * *
If you have any questions you can contact me on Discord (Taylor#1837) or on my Discord server.