N

This is a strong concept. Instead of just cloning UltimateAutoRestart, make RebirthAutoRestart a premium restart and maintenance management plugin with an Underworld Rebirth identity.

RebirthAutoRestart

Premium Restart & Maintenance System

Developer: ItzMeTechu Server: Purpur 1.21.11 Java: 21 Build: Gradle Theme: Underworld Rebirth Premium Purple Gradient

---

Plugin Goals

A professional restart system with:

Automatic Restarts

Smart Restart Detection

Maintenance Mode

Animated Titles

Gradient Messages

BossBars

ActionBars

Sounds

Discord Webhook

Velocity Support

Permission System

Fully Customizable

Zero Lag Design

---

Folder Structure

RebirthAutoRestart/ │ ├── config.yml ├── messages.yml ├── schedule.yml ├── maintenance.yml ├── webhooks.yml ├── animations.yml ├── sounds.yml ├── INVENTORY GUI.yml ├── language.yml └── logs/

---

Restart Scheduler

Supports

Every X Hours

Daily

Weekly

Monthly

Cron Expressions

Example

Every 6 Hours

03:00

09:00

15:00

21:00

---

Countdown System

30 Minutes

20 Minutes

15 Minutes

10 Minutes

5 Minutes

3 Minutes

2 Minutes

1 Minute

30 Seconds

15 Seconds

10

9

8

7

6

5

4

3

2

1

Restart

Everything configurable.

---

Premium Titles

⚡ UNDERWORLD REBIRTH ⚡

Server Restart

in

10 Seconds

Animated fade.

Gradient.

Thunder effect.

---

ActionBar

⚡ Restart in 10 Seconds ⚡

Animated.

---

BossBar

Purple Gradient

⚡ UNDERWORLD RESTART ⚡

Restarting in 03:12

Progress decreases.

---

Chat Messages

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚡ UNDERWORLD REBIRTH

Server Restart

Restart in 5 Minutes

Please finish what you are doing.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

RGB Colors.

MiniMessage support.

Legacy support.

---

Sounds

Every Countdown

BLOCK_NOTE_BLOCK_PLING

Final Countdown

ENTITY_LIGHTNING_BOLT_THUNDER

Restart

UI_TOAST_CHALLENGE_COMPLETE

---

Screen Fade

Dark screen before restart.

Like premium networks.

---

Player Freeze

Optional

Freeze players

Cannot move

Cannot break

Cannot place

Cannot attack

Cannot open inventory

Last few seconds.

---

Auto Kick

Message

UNDERWORLD REBIRTH

Restarting...

See you soon.

underworld-mc.xyz

---

Smart Empty Restart

If server empty

Restart immediately

Skip countdown.

---

Cancel Restart

/rebirthrestart cancel

---

Delay Restart

/rebirthrestart delay 30m

---

Restart Now

/rebirthrestart now

---

Reload

/rebirthrestart reload

---

Maintenance Mode

Inspired by maintenance plugins.

/maintenance on

/maintenance off

---

Maintenance Features

Join Block

Whitelist Staff

Custom Join Screen

Animated Kick

BossBar

Discord Status

Maintenance MOTD

Custom Icon

Server Ping Message

Maintenance Countdown

Maintenance Reason

Estimated Finish Time

---

Join Message

UNDERWORLD REBIRTH

Maintenance Mode

Reason

Network Update

Please return later.

---

Staff Bypass

Permission

rebirthrestart.maintenance.bypass

---

Maintenance MOTD

UNDERWORLD REBIRTH

Maintenance

---

Discord Webhook

Restart Scheduled

Restart Started

Restart Cancelled

Maintenance Enabled

Maintenance Disabled

Restart Finished

Server Online

---

Example Embed

⚡ Underworld Rebirth

Server Restart

Started by

Console

Time

03:00 PM

Players

42

Countdown

5 Minutes

Purple Embed.

---

Startup Message

━━━━━━━━━━━━━━━━━━

UNDERWORLD REBIRTH

Server Online

Restart System Ready

Version 1.0

━━━━━━━━━━━━━━━━━━

---

Animated Console

Purple ASCII

██████╗ ███████╗██████╗ ██╔══██╗██╔════╝██╔══██╗ ██████╔╝█████╗ ██╔══██╗██╔══╝ ██║ ██║███████╗ ╚═╝ ╚═╝╚══════╝

Auto Restart Enabled

---

PlaceholderAPI

%rebirthrestart_next%

%rebirthrestart_remaining%

%rebirthrestart_status%

%rebirthrestart_maintenance%

%rebirthrestart_players%

%rebirthrestart_time%

---

Permissions

rebirthrestart.admin

rebirthrestart.reload

rebirthrestart.restart

rebirthrestart.cancel

rebirthrestart.delay

rebirthrestart.maintenance

rebirthrestart.bypass

rebirthrestart.notify

---

Commands

/rebirthrestart

/rebirthrestart reload

/rebirthrestart now

/rebirthrestart cancel

/rebirthrestart delay

/rebirthrestart schedule

/rebirthrestart maintenance

/rebirthrestart status

/rebirthrestart next

/rebirthrestart force

/rebirthrestart test

---

Integrations

Purpur 1.21.11

Paper

Velocity

PlaceholderAPI

LuckPerms

MiniMessage

Adventure API

Discord Webhooks

Geyser/Floodgate compatible

---

Premium UI Features

Purple gradient MiniMessage formatting.

Smooth animated title and subtitle transitions.

Configurable RGB gradients for chat, boss bars, and notifications.

Restart progress boss bar with animated color phases.

Action bar countdown synchronized with titles.

Optional screen fade before restart.

Custom restart icon in the server list during maintenance.

Fully configurable sounds, timings, and animations.

Production Architecture

Java 21

Gradle Kotlin DSL

Adventure API (MiniMessage + Components)

Scheduler abstraction for Folia/Paper compatibility where possible

Asynchronous configuration loading

Modular package structure (scheduler, maintenance, notifications, discord, commands, config, hooks)

Comprehensive logging and error handling

Hot-reload for most configuration files without restarting the server

This design creates a plugin that feels like a premium network solution rather than a simple auto-restart plugin, while combining advanced restart scheduling with a polished maintenance system tailored to the Underworld Rebirth aesthetic.

Kodari AI
KodariAug 2 at 1:03 pm 2
RebirthAutoRestart
RebirthAutoRestart is a premium Paper and Purpur restart and maintenance system built around the Underworld Rebirth theme. It provides interval, daily, weekly, monthly, and cron-based restart scheduling, synchronized countdown titles, action bars, boss bars, sounds, optional player freezing, smart empty-server handling, restart controls, maintenance join protection, staff bypass permissions, customizable MOTDs, PlaceholderAPI values, and asynchronous Discord webhook notifications. Configuration files support hot reloads and extensive visual, timing, message, and integration customization.
  1. Core project: create the Java 21 Gradle plugin, lifecycle wiring, configuration files, and plugin metadata.

  2. Restart system: implement scheduling, countdown presentation, cancellation, delays, empty-server handling, freezing, and restart execution.

  3. Maintenance and integrations: implement maintenance protection, MOTD handling, PlaceholderAPI values, Discord webhooks, permissions, and commands.

  4. Presentation: add Underworld Rebirth defaults for messages, animations, sounds, schedules, maintenance, webhooks, language, and GUI settings.

RebirthAutoRestart is a premium Purpur and Paper restart and maintenance system built around the Underworld Rebirth theme. It schedules interval, daily, weekly, monthly, and basic cron restarts; presents synchronized countdowns through chat, titles, action bars, boss bars, and sounds; supports cancellation, delays, empty-server restarts, optional player freezing, and automatic kicking. It also provides maintenance mode with staff bypasses, custom MOTD and join protection, configurable MiniMessage and legacy text, PlaceholderAPI values, Discord webhook events, permissions, and reloadable YAML settings.

Created RebirthAutoRestart, a premium Underworld Rebirth-themed Purpur/Paper restart and maintenance plugin with:

  • Java 21 Gradle setup

  • Configurable restart scheduling and countdowns

  • Chat, titles, action bars, boss bars, and sounds

  • Restart cancellation, delays, force, test, and reload commands

  • Optional player freezing and automatic kicking

  • Maintenance mode with staff bypass permissions

  • Custom maintenance MOTD and join protection

  • Discord webhook support

  • PlaceholderAPI integration

  • MiniMessage and legacy formatting support

  • Fully configurable YAML files for schedules, messages, animations, sounds, maintenance, webhooks, language, and GUI settings

N

Commands

Kodari AI
KodariAug 2 at 1:51 pm 1

Commands

Restart Management

Plain Text
/rebirthrestart

Displays current restart status.

Plain Text
/rebirthrestart reload

Reloads plugin configuration files.

Permission: rebirthrestart.reload

Plain Text
/rebirthrestart now
/rebirthrestart force

Starts an immediate restart countdown.

Permission: rebirthrestart.restart

Plain Text
/rebirthrestart cancel

Cancels the active restart sequence.

Permission: rebirthrestart.cancel

Plain Text
/rebirthrestart delay <duration>

Delays the restart.

Examples:

Plain Text
/rebirthrestart delay 30s
/rebirthrestart delay 10m
/rebirthrestart delay 2h

Permission: rebirthrestart.delay

Plain Text
/rebirthrestart schedule
/rebirthrestart next

Displays the next scheduled restart and remaining time.

Plain Text
/rebirthrestart status

Displays restart and maintenance status.

Plain Text
/rebirthrestart test

Starts a test countdown without performing a normal scheduled restart.

Permission: rebirthrestart.restart

Maintenance

Plain Text
/maintenance on [reason]

Enables maintenance mode.

Example:

Plain Text
/maintenance on Network Update
Plain Text
/maintenance off

Disables maintenance mode.

Plain Text
/maintenance status

Displays the current maintenance state and reason.

Permission:

Plain Text
rebirthrestart.maintenance

The command is also available through:

Plain Text
/rebirthrestart maintenance on [reason]
/rebirthrestart maintenance off
/rebirthrestart maintenance status

Aliases

Plain Text
/rrestart

Alias for /rebirthrestart.

Permission Groups

Plain Text
rebirthrestart.admin

Grants all administrative restart permissions.

Plain Text
rebirthrestart.reload
rebirthrestart.restart
rebirthrestart.cancel
rebirthrestart.delay
rebirthrestart.maintenance
rebirthrestart.bypass
rebirthrestart.notify

All administrative permissions default to server operators. Maintenance bypass is controlled by:

Plain Text
rebirthrestart.bypass
N

Fix this plugin when there is no player is in server server automatically restarting and restarting fix all bugs otherwise I will not use this again fix all prove kodari.ai is good otherwise bad

Kodari AI
KodariAug 2 at 1:57 pm 1
  1. Trace the empty-server restart path and restart lifecycle.

  2. Fix the restart loop and related state/scheduler edge cases.

  3. Verify the affected command, listener, configuration, and plugin lifecycle code for consistency.

Fixed the infinite restart loop.

Root cause: empty-server-immediate: true triggered a restart whenever the server had zero players, even when the next scheduled restart was hours away.

Fix: Empty-server acceleration now only activates inside the configured countdown window.

Before:

Java
empty server → immediate restart

Now:

Java
empty server + scheduled restart within countdown window
    → immediate restart

Manual commands such as /rebirthrestart now, /rebirthrestart delay, and /rebirthrestart test still work normally because they already place the restart inside the countdown window.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle.kts
settings.gradle.kts
Code
23 1,236
src/main/java/com/itzmetechu/rebirthrestart/RebirthAutoRestart.java
package com.itzmetechu.rebirthrestart;

import com.itzmetechu.rebirthrestart.command.RebirthCommand;
import com.itzmetechu.rebirthrestart.config.ConfigManager;
import com.itzmetechu.rebirthrestart.hook.PlaceholderHook;
import com.itzmetechu.rebirthrestart.listener.MaintenanceListener;
import com.itzmetechu.rebirthrestart.listener.RestartListener;
import com.itzmetechu.rebirthrestart.maintenance.MaintenanceManager;
import com.itzmetechu.rebirthrestart.notification.NotificationManager;
import com.itzmetechu.rebirthrestart.restart.RestartManager;
import com.itzmetechu.rebirthrestart.webhook.WebhookManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class RebirthAutoRestart extends JavaPlugin {
    private ConfigManager configManager;
    private NotificationManager notificationManager;
    private WebhookManager webhookManager;
    private MaintenanceManager maintenanceManager;
    private RestartManager restartManager;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        configManager.load();

        webhookManager = new WebhookManager(this, configManager);
        notificationManager = new NotificationManager(this, configManager);
        maintenanceManager = new MaintenanceManager(this, configManager, notificationManager, webhookManager);
        restartManager = new RestartManager(this, configManager, notificationManager, webhookManager);

        RebirthCommand command = new RebirthCommand(this, restartManager, maintenanceManager);
        getCommand("rebirthrestart").setExecutor(command);
        getCommand("rebirthrestart").setTabCompleter(command);
        getCommand("maintenance").setExecutor(command);
        getCommand("maintenance").setTabCompleter(command);

        Bukkit.getPluginManager().registerEvents(new RestartListener(restartManager, notificationManager), this);
        Bukkit.getPluginManager().registerEvents(new MaintenanceListener(this, maintenanceManager, restartManager), this);

        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new PlaceholderHook(this, restartManager, maintenanceManager).register();
        }

        restartManager.start();
        getLogger().info("Underworld Rebirth restart system is ready.");
        notificationManager.broadcast("startup", "{version}", getDescription().getVersion());
        webhookManager.send("server-online", "Server Online", "The Underworld Rebirth network is online.");
    }

    @Override
    public void onDisable() {
        if (restartManager != null) {
            restartManager.stop();
        }
        if (notificationManager != null) {
            notificationManager.removeBossBar();
        }
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public RestartManager getRestartManager() {
        return restartManager;
    }

    public MaintenanceManager getMaintenanceManager() {
        return maintenanceManager;
    }

    public NotificationManager getNotificationManager() {
        return notificationManager;
    }

    public void reloadPlugin() {
        configManager.reload();
        maintenanceManager.reload();
        restartManager.reload();
    }
}