JAutoRestart icon

JAutoRestart -----

Powerful auto-restart solution with lag detection - Keep your server running smoothly.



JAutoRestart - The Ultimate Server Restart Solution

Keep your Minecraft server running at peak performance with JAutoRestart, the intelligent auto-restart plugin designed to combat lag and maintain stability effortlessly! Whether you need scheduled resets, lag-triggered restarts, or a seamless configuration experience, this plugin has you covered.

_________________________________________________________​

Key Features:
Scheduled Restarts – Set automatic restarts at precise times. (Tested)
Interval-Based Restarts
– Restart your server at fixed time gaps. (Tested)
TPS Monitoring
– Detects low TPS and takes action. (Not tested!)
Lag-Triggered Auto-Restart
– Ensures smooth performance. (Not tested!)
Inactivity-Based Restarts
– Shuts down an empty server to save resources. (Tested)
Intuitive GUI
– Easily configure everything with a sleek in-game menu.
BungeeCord Support – Works seamlessly across networks. (Tested)
Customizable Alerts
– Notify players before restarts with tailored messages. (Tested)
Fully Configurable Messages
– Personalize every aspect to fit your server. (Tested)

(Not tested!)
If you have time, please test it and let me know in the comments.



_________________________________________________________

If you are facing any problem downloading a new update, you can download it from here: UPDATES

_________________________________________________________

# JAutoRestart Configuration
# Plugin version: 1.0

# Scheduled restart settings
scheduled_restarts:
# List of times to restart daily (24-hour format)
times:
- 00:00
- 06:00
- '12:00'
- '18:00'

# Interval-based restarts
interval:
enabled: false
hours: 6 # Restart every X hours

# Countdown settings before a restart
restart_delay: 60 # Default delay in seconds before a restart

# Command to execute for restart
restart_command: restart # Change to match your server setup

# Countdown notification settings
countdown_notifications:
# Times (in seconds) to send notifications
times:
- 3600
- 1800
- 600
- 300
- 60
- 30
- 10
- 5
- 3
- 2
- 1

# Title notifications
title:
enabled: true
times:
- 60
- 30
- 10
- 5
- 3
- 2
- 1

# Sound notifications
sounds:
enabled: true
type: BLOCK_NOTE_BLOCK_PLING
volume: 1.0
pitch: 1.0

# Server lag detection settings
lag_detection:
enabled: true
threshold: 15.0 # TPS threshold to trigger restart
check_interval: 60 # Check interval in seconds
consecutive_checks: 3 # Number of consecutive low TPS checks before restarting

# Inactivity restart settings
inactivity_restart:
enabled: true
threshold_minutes: 30 # Restart after X minutes of inactivity
check_interval: 300 # Check interval in seconds
delay: 30 # Countdown seconds before restart

# BungeeCord/proxy settings
bungeecord:
enabled: false
show_other_servers: true # Show notifications for other servers' restarts

# Update checker settings
update_checker:
enabled: true
check_interval: 86400 # Check for updates every 24 hours

messages:
restart_initiated: "<gold>Server restart initiated! Server will restart in <white>{seconds}</white> seconds."
restart_cancelled: "<green>Server restart has been cancelled."
restart_cancelled_broadcast: "<green>The scheduled server restart has been cancelled."
restart_in_progress: "<yellow>A server restart is currently in progress."
no_restart_in_progress: "<yellow>There is no restart in progress to cancel."
config_reloaded: "<green>JAutoRestart configuration has been reloaded."
no_permission: "<red>You don't have permission to use this command."
invalid_number: "<red>Invalid number. Please enter a valid number of seconds."
only_players: "<red>This command can only be used by players."
restart_seconds: "<yellow>Server restarting in <bold>{seconds}</bold> seconds!"
restart_minutes: "<yellow>Server restarting in <bold>{minutes}</bold> minutes!"
restart_title: "<red>Server Restarting"
restart_subtitle: "<yellow>In {seconds} seconds"
action_bar_countdown: "<red>Server restarting in {seconds}..."
tps_monitor_enabled: "<green>TPS monitor has been enabled."
tps_monitor_disabled: "<yellow>TPS monitor has been disabled."
update_available: "<gold>A new version of JAutoRestart (v{version}) is available!"
no_update_available: "<green>You are running the latest version of JAutoRestart."
proxy_restart_notification: "<gray>Server <gold>{server}</gold> is restarting in {seconds} seconds."
proxy_restart_cancelled: "<gray>Restart on server <gold>{server}</gold> has been cancelled."

_________________________________________________________​

Commands:
/jautorestart – Displays the help menu.
/jautorestart restart [seconds] – Triggers a restart countdown.
/jautorestart cancel – Cancels an active restart.
/jautorestart reload – Reloads the configuration.
/jautorestart gui – Opens the easy-to-use configuration GUI.
/jautorestart update – Checks for the latest version.

_________________________________________________________​

Permissions:
jautorestart.admin – Grants full access to all features.
jautorestart.restart – Allows manual server restarts.
jautorestart.cancel – Lets users cancel scheduled restarts.
jautorestart.reload – Enables configuration reloads.
jautorestart.gui – Allows access to the in-game GUI.
jautorestart.update – Permits update checks.


_________________________________________________________
[​IMG]
Resource Information
Author:
----------
Total Downloads: 20
First Release: Mar 12, 2025
Last Update: Mar 14, 2025
Category: ---------------
All-Time Rating:
0 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings