Sprache

Daily AutoRestart

Daily AutoRestart

SpigotMCModrinth

daily, restart, automatic

125 Downloads
neueste v1.0.3 SpigotMC
1.13 – 1.21
[​IMG]
Daily Auto Restart
Automatically restart your server daily at a scheduled time with customizable warnings
[​IMG] [​IMG] [​IMG]

⭐ Overview
DailyAutoRestart is a lightweight, reliable plugin that automatically restarts your Minecraft server at a specific time each day. Unlike interval-based restart plugins, this uses actual time-of-day scheduling, ensuring consistent restart times regardless of when your server started.
Perfect for server maintenance, reducing lag buildup, and keeping your server running smoothly!

✨ Features
  • ⏰ Scheduled Daily Restarts - Set exact restart time in 24-hour format
  • ⚠️ Multiple Warning Levels - Warns players at 60, 30, 15, 5, and 1 minute before restart
  • ⏱️ 10-Second Countdown - Dramatic countdown from 10 to 0 before restart
  • Sound Notifications - Optional sound effects for warnings (fully configurable)
  • Fully Customizable Messages - All messages support color codes and placeholders
  • Live Reload - Update settings without restarting the server
  • ️ Permission System - Control who can view info and reload config
  • Utility Commands - Check server time and time until restart
  • Lightweight - Minimal performance impact
  • Easy Configuration - Simple YAML configuration
Commands
Command Aliases Description Permission
/dailyautorestart /dar, /dailyrestart View restart info and help dailyautorestart.use
/dailyautorestart reload - Reload configuration dailyautorestart.reload
/servertime /stime, /time Display current server time dailyautorestart.use
/timeuntilrestart /untilrestart, /restarttime Show time until next restart dailyautorestart.use



Permissions
  • dailyautorestart.use - View restart info and use utility commands (default: true)
  • dailyautorestart.reload - Reload plugin configuration (default: op)
Installation
Step 1: Download the latest DailyAutoRestart.jar file
Step 2: Place it in your server's plugins/ folder
Step 3: Restart your server
Step 4: Configure the plugin in plugins/DailyAutoRestart/config.yml
Step 5:
Use /dailyautorestart reload to apply changes
Coming soon - Video tutorial showing installation and setup

⚙️ Configuration
Code (YAML):

# DailyAutoRestart Configuration
# Plugin by Kreskofter
# Time to restart the server (24-hour format HH:mm)
# Examples: "04:00" for 4 AM, "16:30" for 4:30 PM
restart-time
: "04:00"
# Warning messages
messages
:
  # Prefix for all messages
  prefix
: "&c&l[DailyAutoRestart]"
 
  # Warning message (use {time} placeholder)
  warning
: "&e⚠ Server will restart in {time}!"
 
  # Countdown message (use {time} for seconds, {s} for plural)
  countdown
: "&c&lRestarting in {time} second{s}!"
 
  # Final restart message
  restarting
: "&c&lThe server will now restart. We will be back shortly!"
 
  # Kick message when players are disconnected
  kick
: |-
    &c&lServer Restarting
 
    &eWe will be back shortly!
    &7Expected downtime
: 1-2 minutes
# Sound settings
sound
:
  # Enable/disable sounds
  enabled
: true
 
  # Sound for warnings (60, 30, 15, 5, 1 minute warnings)
  type
: "BLOCK_NOTE_BLOCK_PLING"
 
  # Sound for countdown (last 10 seconds)
  countdown
: "BLOCK_NOTE_BLOCK_HAT"
 
Code (Text):

&0 = Black      &8 = Dark Gray
&1 = Dark Blue  &9 = Blue
&2 = Dark Green &a = Green
&3 = Dark Aqua  &b = Aqua
&4 = Dark Red   &c = Red
&5 = Dark Purple &d = Light Purple
&6 = Gold       &e = Yellow
&7 = Gray       &f = White
&l = Bold       &m = Strikethrough
&n = Underline  &o = Italic
&r = Reset
 

⏰ Warning Schedule
The plugin will warn players at these intervals before restart:
  • 60 minutes before restart
  • 30 minutes before restart
  • 15 minutes before restart
  • 5 minutes before restart
  • 1 minute before restart
  • ⏱️ 10-second countdown (10, 9, 8, 7, 6, 5, 4, 3, 2, 1)
  • Server restarts

Example Usage
Check server time:
Code (Text):

/servertime
> Current Server Time: 3:45:22 PM
 
Check time until restart:
Code (Text):

/timeuntilrestart
> === Server Restart Information ===
> Scheduled restart: 04:00
> Time until restart: 12 hours, 14 minutes, 38 seconds
 
Change restart time and reload:
Code (Text):

# Edit config.yml
restart-time: "05:00"
# Reload in-game
/dailyautorestart reload
> DailyAutoRestart configuration reloaded! Next restart at 05:00
 

Server Wrapper Setup
IMPORTANT: This plugin calls Bukkit.shutdown() which stops the server. You need a server wrapper to automatically restart it.
✅ Auto-restart is enabled by default
- Check: Server Settings → Startup → Auto-restart
Enable restart on crash:
- Server Properties → Restart on Crash → Yes
Add to your service file:
Code (Text):

[Service]
Restart=always
RestartSec=5
 
Create a wrapper script:
Code (Bash):

#!/bin/bash
while true; do
    java -jar server.jar
    sleep 5
done
 
Test your setup: Type /stop in console. If your server restarts automatically, the plugin will work!

Troubleshooting
Solution:
  • Set restart time 2-3 minutes in the future to test
  • Use /dailyautorestart reload after changing config
  • Watch server console for debug messages
  • Ensure time format is HH:mm (e.g., "04:00" not "4:00")
Check:
  • Your server wrapper is configured to auto-restart (see above)
  • Console shows "Executing server shutdown..." message
  • Test with /stop command - should auto-restart
Check:
  • Restart time is set correctly: /dailyautorestart
  • Time format is HH:mm in config.yml
  • You've reloaded after config changes

Compatibility
  • Minecraft Versions: 1.13 - 1.21+
  • Server Software: Spigot, Paper, Purpur, and all compatible forks
  • Java Version: Java 8 or higher
  • Dependencies: None! Completely standalone
Screenshots
[​IMG]
Players receive clear warnings before restart
[​IMG]
10-second countdown with sound effects
[​IMG]
Helpful commands to check server time and restart schedule

Statistics

[​IMG]
This plugin uses bStats to collect anonymous usage data

⭐ Support the Developer

If you enjoy this plugin, please:​
  • ⭐ Leave a 5-star review
  • Share your feedback
  • Suggest new features
Your support helps keep this plugin updated and maintained!

Contact & Links
Author: Kreskofter
Website: kreskofter.com
Minecraft Server: krumbledmc.com

Versionen

Release
1.0.3
·
2
Release
1.0.1
·
16

Kommentare 0

Noch keine Kommentare. Sei der Erste, der seine Meinung teilt.

Herunterladen Daily AutoRestart

Modrinth

Dateien werden direkt von der Originalquelle bereitgestellt. Modgrid hostet oder verändert sie nicht.