Create a complete Minecraft plugin named GarudaAutoRestart for GarudaMC.
Server details:
- Paper 1.21.11
- Java
- Meowlix Hosting
- Hong Kong Node
- Timezone: Asia/Hong_Kong (UTC+8)
CORE REQUIREMENT:
At a configurable fixed time every day, the plugin must perform the following sequence:
- Broadcast warning messages to all online players at 10 minutes, 5 minutes, 3 minutes, 1 minute, 30 seconds, and 10, 5, 4, 3, 2, 1 seconds before shutdown.
- At the configured shutdown time, gracefully and completely stop the Minecraft server.
- As soon as the Minecraft server has COMPLETELY STOPPED, automatically start it again immediately.
- There must be NO intentional waiting period between shutdown completion and startup.
- The server must return to ONLINE state automatically without any manual intervention.
IMPORTANT TECHNICAL REQUIREMENTS:
- A normal Bukkit/Paper plugin cannot execute code after the JVM stops.
- Implement this using a proper external watchdog, hosting panel API, or Meowlix startup integration.
- Do not use Bukkit restart commands alone.
- Do not use fake API endpoints.
- The restart trigger must detect actual process termination before starting the server.
- Prevent duplicate startup requests.
- Ensure graceful shutdown and world saving.
- Provide configurable broadcast messages.
- Support daily scheduled shutdown.
- Include admin commands:
/garudarestart reload /garudarestart status /garudarestart schedule
Generate complete source code, config.yml, plugin.yml, pom.xml, README.md, and compiled JAR if possible.
Explain the exact Meowlix Hong Kong node setup required for automatic restart.