Command scheduler for minecraft server (now only support Bukkit/Spigot/Paper). Just works like cron on Linux.
I made this wheel because bukkit's scheduler may not work in time for using tick for time. For instance, if TPS of the server always fails reaching 20.0, then the delay of tasks may take more time than expected.
Besides, many of current plugins are implemented with ticks counting.
I need some tool to help server managers to create schedule tasks in simple way. It should be punctual, and powerful. Then I think of cron, a schedule tool in linux.
I copied the syntax of cron, add a second part to support second-level schedule. The syntax looks like this:
[second] [minute] [hour] [dayOfMonth] [month] [dayOfWeek] (year)
Example:
1
means run at second 1.3,5,8-12
means3,5,8,9,10,11,12
*
means0-59
*/4
means0,4,8,12,16,20,24,28,32,36,40,44,48,52,56
*/2
,*/3
,*/4
,*/5
,*/6
,*/10
,*/12
,*/15
,*/20
,*/30
is legal.
Same as second.
Familiar with second and minute.
Familiar with second, minute and hour, but also support some special usage:
W
means the first weekday of this month.L
means the last day of this month.
Familiar with second, minute and hour, but also accept words along with numbers. For example:
jan
,JAN
,Jan
,January
,1
are same.
Familiar with second, minute and hour, but also accept words along with numbers:
mon
,MON
,Mon
,Monday
,1
are same.0
and7
are both stand for Sunday.
Along with some special usage:
wed#3
means the third wednesday of this month.
Year part is optional. If it doesn't exist, it means *
.
Mode 1: Virtual Wheels Tick. tickOne
to find next available time.
Mode 2: Rapid Locate. Using when initializing.