timedShutdown
Automatically shut down the server at a specific time.
Cron Jobs
- Shutdown - Temporal Value: 3 30 * * *
- warning - Temporal Value: 3 25 * * *
Config variables
- warningMessage string - Message to send to players before the server shuts down.
The Timed Shutdown module provides automated server shutdown functionality with configurable warning messages to players. This guide explains how to configure and use the module effectively.
Overview
The Timed Shutdown module performs two main functions:
- Sends a warning message to all players before shutdown
- Automatically shuts down the server at a specified time
Configuration
Warning Message
- Setting:
warningMessage
- Default: "Server is shutting down in 5 minutes!"
- Description: The message that will be broadcast to all players 5 minutes before shutdown
- Length Limits: 1-1024 characters
Timing
The module operates by default on a fixed schedule:
- Warning Time: 3:25 AM (server time)
- Shutdown Time: 3:30 AM (server time)
These times are set using cron expressions:
- Warning message:
3 25 * * *
- Server shutdown:
3 30 * * *
You can change the cron jobs to your liking.
Installation Steps
- Navigate to your game server's Modules section
- Click "Install New Module"
- Search for "timedShutdown"
- Configure your warning message
- Click Install
Best Practices
Warning Message Format
Consider including:
- Specific time remaining until shutdown
- Reason for shutdown (e.g., maintenance, daily restart)
- When the server will be back online
Example message:
Server is shutting down in 5 minutes for daily maintenance. We'll be back online in ~10 minutes. Please find a safe spot!
Server Time Considerations
- Ensure your server's time zone is correctly set
- Choose shutdown times during low-activity periods
- Account for regular maintenance windows
Troublesh ooting
Common issues and solutions:
- Shutdown not occurring
- Verify server time matches expected shutdown time
- Check module installation status
- Review server logs for errors
- Warning message not displaying
- Confirm message is properly configured
- Check chat/message system functionality
- Verify module permissions