GeyserAutoShutdown
PluginApache-2.0

GeyserAutoShutdown

A Geyser extension that automatically shuts down your Geyser server at a scheduled time using cron expressions.

15
Downloads
0
Followers
4 months ago
Updated
📦
1
Versions

📖About GeyserAutoShutdown


⏰ GeyserAutoShutdown


⚠️ This extension is compatible only with Geyser STANDALONE. ⚠️


📋 Description

GeyserAutoShutdown is a handy Geyser extension that automatically shuts down your Geyser server at a scheduled time using cron expressions. Perfect for automating Geyser restarts via custom start scripts that handle restarting after shutdown.

  • WARNING: This is NOT a Velocity/BungeeCord/Spigot plugin! This is a Geyser Extension.
  • INSTALLATION: Place the jar file into your Geyser-Standalone/extensions folder.

✨ Features

  • ⏳ Scheduled server shutdown using cron syntax.
  • 🔄 You can restart automatically Geyser via looped start scripts.
  • ⚙️ Easy configuration with config.yml.
  • 🔄 Compatible with Geyser Standalone setups.

⚙️ Configuration

# Set the shutdown time here using cron format (https://crontab.guru/)
# Default: shuts down daily at 3 AM
shutdown: "0 3 * * *"

💻 Example start scripts

(to automatically restart the server after shutdown)

Linux/Mac (start.sh)

#!/usr/bin/env sh

while true; do
  java -Xmx1G -jar Geyser-Standalone.jar
  echo "Server restarting..."
  echo "Press CTRL + C to stop."
done

Windows (start.bat)

@echo off

:start
java -Xmx1G -jar Geyser-Standalone.jar

echo Server restarting...
echo Press CTRL + C to stop.
goto start