LegacyShell WikiLegacyShell Wiki
Back to LegacyShell
Home
Wiki
Plugins
Docs
Back to LegacyShell
Home
Wiki
Plugins
Docs
  • Plugins

    • Plugin Docs

      • Default

        • Crackshot
        • Auto Restart Notifications
        • Auto Shop Notifications
        • Burnt Block Sets
        • Christmas Event
        • DeadInternet
        • FancyGraphics
        • Health Pack Item
        • Item ToolTips
        • LegacyAdmin
        • LegacyAnalytics
        • LegacySettings
        • LegacyShellCore
        • LegacyThemes
        • LegacyWeather
        • Modern Map Blocks
        • Modern Shell Guns
        • Modern Shell Hats
        • Modern Shell Stamps
        • Minerva
        • ParkourMode
        • Player Count Notifications
        • TimeMachine
        • Vaporwave Map Blocks
        • WhatsAppTheme
        • Zaxonius Custom Guns
      • Examples

        • Modern Shell Maps
    • List of plugins

Canonical source: plugins_default/autorestartnotifications/README.md - edit that file, not this page (this page is built live from it, nothing here is a tracked copy).

Auto Restart Notifications

Warns players in-room before a scheduled daily server restart, at nine fixed checkpoints: 30, 15, 10, 5, and 1 minute before, then 30, 10, and 5 seconds before, and finally "Server is restarting now" at zero.

Setup

Nothing to configure - the checkpoint list and messages are hardcoded in initNotifies(), not read from any config file.

Only actually fires under perpetual, with daily restarts enabled

The timing this plugin reacts to (ss.config.restartTime) is only ever populated when the game server is polling a services instance that itself is running under Perpetual with perpetual_all.services.dailyrestart_enable set - services computes the next scheduled restart time from dailyrestart_time and relays it down through the normal requestConfig/servicesInfo push. Run the game server directly (npm run game, no perpetual wrapper) or with daily restarts disabled, and restartTime stays unset - the checkpoint comparisons never match, and this plugin silently never notifies anyone. Not a bug to report; it's working as designed for a deployment that doesn't use scheduled restarts.

Notes

Runs once per room, every metaLoop tick (2000ms - see Game Loop), and calls room.notify(...) (broadcasts to that room only) - a large deployment with many rooms means many independent, identical notifications firing in parallel, one per room, not one global announcement.


This page was drafted with AI assistance and reviewed for accuracy. If something looks wrong, please open a PR or flag it.

Prev
Crackshot
Next
Auto Shop Notifications