6 releases, newest first.
Packet-level lockdown active on <version>./snautorestart time, the placeholders, the schedule times and every lead count to it. At that moment every player without snautorestart.bypass is kicked and logins stay refused.shutdown.delay (default 20). The server really shuts down this many seconds after the kick. Untagged pre-restart commands run right before it, and the bypass holders still online are kicked then. /snautorestart cancel still works during that wait./snautorestart now [time] is an alias of /snautorestart restart [time].lockdown.allowed-commands now defaults to []. /snautorestart and its aliases always work during a lockdown.kick.before-restart is removed. A config that still has it logs one WARN; delete the kick: section. With the default values the kick now happens at the restart time and the shutdown 20 seconds later; before 2.0.0 the kick came 20 seconds before the shutdown.lockdown.before-restart, join-lock.before-restart, [time:X] commands, announce-at) now count to the kick instead of the shutdown.CountdownView.endsAt() and getNextRestart() are still the real shutdown (API_VERSION unchanged).license.yml and the background revalidation are gone.plugins/SnAutoRestart/license.yml is ignored and can be deleted.com.sn.autorestart.api, resolved through SnAutoRestartProvider.get():
isCountdownActive(), getCountdown() (cause, end, length, time left), getNextRestart(), isLockdownActive(), isManualLockdownActive(), isJoinLocked(), getApiVersion().RestartForceEvent (/sar restart), RestartCancelEvent (/sar cancel), LockdownToggleEvent (/sar lockdown on|off).api-events.enabled (default true) and lang key messages.command.api-cancelled (en/es), merged automatically on boot.First stable release of SnAutoRestart.
Known limitations: the obfuscated jar has not been boot-tested on a server yet; some open audit warnings are tracked and do not gate (see the audit ledger).