HyRestart – Automatic Server Restart System
A comprehensive and configurable automatic restart plugin for Hytale servers with Discord integration and customizable warning messages.
If you are not using Pterodactyl, you may encounter the issue that the server does not restart. To resolve this, you will need to create a script to restart the server.
Features
- Automatic scheduled server restarts
- Multiple daily restart times (24h format)
- Progressive player warnings before restart
- Fully customizable warning and system messages
- Discord webhook notifications with rich embeds
- Separate messages for warnings and final restart
- Placeholder system for dynamic message content
- Simple configuration with easy translation support
Installation
- Download HyRestart
- Move the file to your mods folder located in your Hytale Server root directory
- Start your server
- A default configuration file will be generated automatically
- Edit the configuration file to customize restart times, warnings, and Discord settings
Configuration
HyRestart is configured through a simple and clean config.yml file.Restart Times
Define one or more restart times per day:
YAML:
restartTimes:
- "03:00"
- "09:00"
- "15:00"
- "21:00"
Warning System
Configure when warnings are sent and what players will see:
YAML:
warnings:
- seconds: 1800
message: "[Restart] The server will restart in 30 minutes."
- seconds: 900
message: "[Restart] The server will restart in 15 minutes."
- seconds: 300
message: "[Restart] The server will restart in 5 minutes."
- seconds: 60
message: "[Restart] Restart in 1 minute. Please disconnect."
Final Restart Message
YAML:
finalRestartMessage: "[Restart] Restarting server NOW!"
Discord Integration
Send restart notifications directly to Discord using webhooks:
YAML:
discord:
enabled: true
webhookUrl: "YOUR_WEBHOOK_URL"
embedTitle: "Server Restart"
embedDescription: "The server will restart in **{time}**."
embedColor: 16711680
finalEmbedTitle: "SERVER RESTARTING"
finalEmbedDescription: "The server is restarting now."
Discord Integration Features
- Webhook-based Discord notifications
- Warning messages sent before restart
- Final restart notification
- Time placeholders supported for clean and readable embeds
Placeholder Support
HyRestart supports placeholders to display dynamic information in messages:- Restart time or remaining time
- Number of online players
- Custom warning messages
- Player usernames
- Discord-friendly time formats
YAML:
[HyRestart] Warning sent to {count} players. Restart in {time}.
