Skip to content
ID

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.

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.

/autorestart start [duration] uses default-countdown when no duration is supplied.

Accepted explicit duration forms are:

60
2m
1m30s
1h2m3s

Rules:

  • a plain integer means seconds;
  • compound units use h, m, and s without spaces;
  • the value must be greater than zero;
  • values that overflow the plugin’s integer-second range are rejected.

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 SUNDAY
  • start is rejected if another restart is already in progress.
  • cancel only succeeds during COUNTDOWN; it cannot cancel COMMITTED.
  • schedule delete only 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.