RestartAR

Restart with countdown

4,38k

RestartAR

RestartAR

Automatic Server Restarts with Discord Integration & Notifications

GitHub Modrinth Spigot

bstats

RestartAR is a powerful yet lightweight plugin that enables automatic and manual server restarts with full in-game notifications and Discord webhook support. Perfect for keeping your Minecraft server running smoothly without hassle.

---

Features

- Scheduled automatic restarts Configure exact restart times and dates via `config.yml`.

- Manual restart command Instantly trigger a restart whenever you need.

- Customizable notification system Supports chat messages, titles, action bars, and boss bars.

- Discord integration Sends restart messages to a specified channel using a webhook (or JDA bot integration).

- ⚙️ Pre-restart command execution Run commands before restart (e.g., saving data, kicking players, etc.).

- Easy configuration Clean and simple `config.yml` and `lang.yml` setup.

- Fully compatible with the latest Spigot/Paper versions

---

Installation

1. Configure `RestartAR.jar` 2. Configure in your `/plugins` folder 3. Configure your server 4. Configure `config.yml` to your liking

---

⚙️ Configuration

```yaml

Language selection (available: "en", "ru")

Choose the language for the plugin's messages.

language: "en"

Notification method for restart

Specify how the restart countdown will be displayed to players.

Possible values:

- "chat" (only in chat)

- "actionbar" (only in Action Bar)

- "bossbar" (only in Boss Bar)

- "title" (only in Title)

Example: ["chat"] - will show only in chat

Example: ["bossbar", "actionbar", "title"] - will show in BossBar, ActionBar, and Title

notification-type: ["actionbar"]

BossBar settings

Configure the color of the BossBar if "bossbar" is selected for notifications.

Possible values: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW

bossbar-color: "RED"

Countdown announcement times (in seconds)

This is the list of times (in seconds) when an announcement will be made during the countdown to restart.

countdown-announcements: [60, 30, 10, 5, 4, 3, 2, 1]

If true, the title will update every second instead of using the specified title countdown times.

title-update-every-second: false

Countdown announcement times for title (if "title" is enabled)

Define specific times when the countdown will be shown in the title (if title notifications are enabled).

title-countdown-announcements: [60, 40, 30, 20, 10, 5, 4, 3, 2, 1]

Default restart time (if not specified in the command)

This is the default time (in seconds) the server will restart after the command is run if no specific time is given.

default-restart-time: 60

Whether to execute pre-restart commands

If set to true, the pre-restart commands will be executed before restarting the server.

execute-pre-restart-commands: false

Time before restart (in seconds) to execute pre-restart commands

This specifies the time (in seconds) before the restart at which the pre-restart commands should be executed.

pre-restart-execute-time: 0

Commands to execute before restart

List of commands that will be executed before the server restarts. For example, you might want to save all data.

pre-restart-commands: - "save-all" - "say The server is restarting!"

Enable or disable scheduled restarts based on date/time

Set this to true if you want to enable automatic restarts at specific times.

enable-scheduled-restarts: false

Dates and times for automatic restart (format: yyyy-MM-dd HH:mm:ss or just HH:mm:ss)

List of dates and times when the server should automatically restart. Use full date-time or just the time.

restart-dates:

Example with full date and time

- "2025-03-08 03:00:00" - "2025-03-09 15:00:00"

Example with just time (no date)

- "03:00:00" - "15:00:00"

Discord bot settings

discord-mode: "none" # "bot" - use a bot, "webhook" - use a webhook, "none" - disable Discord messages

Bot settings (used if discord-mode = "bot")

discord-bot-token: "YOUR_BOT_TOKEN_HERE" # Your Discord bot token discord-channel-id: "YOUR_CHANNEL_ID_HERE" # ID of the channel where messages will be sent

Webhook settings (used if discord-mode = "webhook")

discord-webhook-url: "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL" # Your Discord webhook URL discord-avatar-url: "https://your.avatar.url" discord-thumbnail-url: "https://your.thumbnail.url" discord-footer-icon-url: "https://your.footer.icon.url" discord-username: "YourCustomUsername" discord-footer-text: "YourCustomFooterText"

ADS