RestartAR
Automatic Server Restarts with Discord Integration & Notifications
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 viaconfig.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 simpleconfig.ymlandlang.ymlsetup. -
Fully compatible with the latest Spigot/Paper versions
Installation
- Download
RestartAR.jar - Place it in your
/pluginsfolder - Restart your server
- Configure
config.ymlto your liking
⚙️ Configuration
# 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" All Versions
+ Add Version- Added ConfigUpdater for automatic configuration updates
- Added custom webhook message text support
- Improved code structure and readability
- Updated main config structure and language files
- Code Structure: Optimized and cleaned up
- Version Support: Compatible with 1.17 → 1.21.10
- Languages: Added German and Ukrainian
- Bug Fixes: Fixed issues with scheduled restarts and Discord notifications
- Added the ability to set a timezone in the config (
timezone). - If the field is empty, the server's local time is used.
- All scheduled restarts now respect the selected timezone for countdowns and messages.
thx bro discord: tw_johnjohn2011.
%restartar_last_hhmmss%
%restartar_last_formatted%
- Added the
/ar nowcommand for immediate server restart. - Added the
/ar disablefeedbackcommand to disable notifications for admins. - Added the
/ar scheduledcommand to display scheduled restarts. - Fixed a permissions issue, now only players with the correct permissions can see admin notifications.
- Removed unused notifications from the code.
- Removed the
%date%placeholder. - Improved code structure and organization.
- Added support for
setTabCompleterfor better command auto-completion.
I wasn't able to finish the rest of the update yet, but a similar set of changes will be released later as version 1.9.1. As for what's coming after 1.9.1, I'm not sure yet. If you have any ideas or suggestions, feel free to reach out to me on Discord
- Improved Russian translation
Command /ar help displays plugin commands.
Command /autorestart changed to /ar restart.
- Added support for Discord notifications via bot
- Option to enable/disable the bot in the config
- Added support for setting commands before server restart.
- Introduced method for notifying players using title.
- Fixed minor performance bugs.
bstats: https://bstats.org/plugin/bukkit/RestartAR/25011
⭐ Features:
✔ Start a restart timer with a specified time in seconds.
✔ Flexible notifications – messages in chat, ActionBar, and BossBar.
✔ BossBar support – display restart notifications with a customizable color.
✔ Cancel the restart at any time.
✔ Customizable notification intervals before the restart.
⚡ Commands & Permissions
/autorestart [time] – Starts the restart timer.
Permission: timereload.restart
Example: /autorestart 120 → (restart in 120 seconds)
/ar cancel – Cancels the active restart timer.
Permission: timereload.restart
Example: /ar cancel
/ar reload – Reloads the plugin configuration.
Permission: timereload.restart
Example: /ar reload


