Commands
The canonical command is /autorestart. Aliases are /ar and /mfar.
All commands below require mfautorestart.admin. The command handler accepts both player and console senders; there are no player-only subcommands in the delivered source.
Administration Commands
Section titled “Administration Commands”| Command | Description |
|---|---|
/autorestart |
Show command help. |
/autorestart help |
Show command help. |
/autorestart status |
Show timezone, restart phase, next schedule, and loaded schedules. |
/autorestart start [duration] |
Start a manual restart countdown. |
/autorestart cancel |
Cancel an active countdown before it is committed. |
/autorestart schedule add daily <HH:mm> |
Add a persistent daily dynamic schedule. |
/autorestart schedule add weekly <DAY> <HH:mm> |
Add a persistent weekly dynamic schedule. |
/autorestart schedule delete <id> |
Delete a persistent dynamic schedule by database ID. |
/autorestart schedule list |
List config and dynamic schedules. |
/autorestart reload |
Reload config, language, and dynamic schedules using fail-safe preparation. |
Aliases may replace /autorestart, for example /ar status.
Duration Format
Section titled “Duration Format”/autorestart start [duration] uses default-countdown when no duration is supplied.
Accepted explicit duration forms are:
602m1m30s1h2m3sRules:
- a plain integer means seconds;
- compound units use
h,m, andswithout spaces; - the value must be greater than zero;
- values that overflow the plugin’s integer-second range are rejected.
Schedule Arguments
Section titled “Schedule Arguments”Daily:
/autorestart schedule add daily <HH:mm>Weekly:
/autorestart schedule add weekly <DAY> <HH:mm>HH:mm must contain two-digit hour and minute fields in the ranges 00-23 and 00-59.
DAY must be one of:
MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAYSpecial Conditions
Section titled “Special Conditions”startis rejected if another restart is already in progress.cancelonly succeeds duringCOUNTDOWN; it cannot cancelCOMMITTED.schedule deleteonly targets dynamic SQLite schedule IDs.- commands return a plugin-not-ready message while asynchronous startup is still in progress.
- only one full reload can run at a time.
See Permissions for the permission model.