Back to NxLabs

NxLabs / Vintage Story

Restart Timer

DBy Darlem

Announces restart times and automatically stops the server after 4 hours of uptime.

Restart Timer

Description

When the server starts, this mod begins a uptime timer. At the configured time (default 4 hours), it runs:

  • /announce warnings at configured intervals
  • /stop at the end of the countdown

 

Default warning announcements:

  • 30 minutes

  • 15 minutes

  • 10 minutes

  • 5 minutes

  • 3 minutes

  • 1 minute

Then:

  • Stop server: /stop

Important: The mod stops the server. Something else (your hosting panel / script / service) must start it back up. Check README in mod zip for help.

 

Admins can manually trigger a restart countdown at any time:

Command:

/restart + /restart cancel

Countdown:

  • Immediately announces “Manual restart initiated. Server restart in 10 minutes.”

  • Then announcements at:

    • 5 minutes

    • 3 minutes

    • 1 minute

  • Then runs: /stop

If a manual restart is already scheduled, the mod prevents stacking multiple restart timers.

New autosave commands

 

/autosavenowset <1-1440> or /autosavenowset <1m-1440m> — Schedules a vanilla /autosavenow to run that many minutes before the next automatic restart. Both 30 and 30m work. You can configure multiple save points; duplicates are ignored.

 

/autosavenowset (no arguments) — Lists all configured autosave points and whether each has already fired this cycle.

 

/autosavenowset list — Same as above.

 

/autosavenowset clear — Removes all configured autosave points.

 

 

Commands summary

Public:

  • /rss "restart status" – show time remaining until restart(s)

Admin:

  • /restart + /restart cancel – start a manual 10-minute restart countdown
  • /autorestart set 1-24
  • /autorestart on/off

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.