RestartAR
自动服务器重启,支持 Discord 集成与通知
RestartAR 是一款功能强大且轻量级的插件,支持自动和手动服务器重启,并提供完整的游戏内通知和 Discord Webhook 支持。非常适合让您的 Minecraft 服务器平稳运行,无需繁琐操作。
✅ 功能特性
-
定时自动重启
通过config.yml配置确切的重启时间和日期。 -
手动重启命令
随时触发即时重启。 -
可定制的通知系统
支持聊天消息、标题(Title)、动作栏(Action Bar)和 Boss 栏(Boss Bar)。 -
Discord 集成
使用 Webhook(或 JDA 机器人集成)将重启消息发送到指定频道。 -
⚙️ 重启前命令执行
在重启前执行命令(例如保存数据、踢出玩家等)。 -
易于配置
简洁清晰的config.yml和lang.yml设置。 -
完全兼容最新的 Spigot/Paper 版本
安装方法
- 下载
RestartAR.jar - 放置 到
/plugins文件夹中 - 重启 您的服务器
- 按照喜好配置
config.yml
⚙️ 配置说明
# 语言选择(可用:"en", "ru")
# 选择插件消息的语言。
language: "en"
# 重启通知方式
# 指定倒计时如何向玩家显示。
# 可能的值:
# - "chat"(仅在聊天栏显示)
# - "actionbar"(仅在动作栏显示)
# - "bossbar"(仅在 Boss 栏显示)
# - "title"(仅在标题显示)
# 示例:["chat"] - 仅在聊天栏显示
# 示例:["bossbar", "actionbar", "title"] - 在 BossBar、ActionBar 和 Title 中显示
notification-type: ["actionbar"]
# BossBar 设置
# 如果通知类型选择了 "bossbar",配置 BossBar 的颜色。
# 可能的值:BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
bossbar-color: "RED"
# 倒计时公告时间(秒)
# 这是重启倒计时期间进行公告的时间列表(以秒为单位)。
countdown-announcements: [60, 30, 10, 5, 4, 3, 2, 1]
# 如果为 true,标题将每秒更新,而不是使用指定的标题倒计时时间。
title-update-every-second: false
# 标题的倒计时公告时间(如果启用了 "title")
# 定义在标题中显示倒计时的具体时间(如果启用了标题通知)。
title-countdown-announcements: [60, 40, 30, 20, 10, 5, 4, 3, 2, 1]
# 默认重启时间(如果在命令中未指定)
# 如果未给出特定时间,这是运行命令后服务器重启前的默认时间(以秒为单位)。
default-restart-time: 60
# 是否执行重启前命令
# 如果设置为 true,将在重启服务器之前执行重启前命令。
execute-pre-restart-commands: false
# 执行重启前命令的重启前时间(秒)
# 这指定了重启前多少秒(以秒为单位)执行重启前命令。
pre-restart-execute-time: 0
# 重启前执行的命令
# 在服务器重启前将执行的命令列表。例如,您可能希望保存所有数据。
pre-restart-commands:
- "save-all"
- "say The server is restarting!"
# 基于日期/时间启用或禁用定时重启
# 如果您希望在特定时间启用自动重启,请将其设置为 true。
enable-scheduled-restarts: false
# 自动重启的日期和时间(格式:yyyy-MM-dd HH:mm:ss 或仅 HH:mm:ss)
# 服务器应自动重启的日期和时间列表。使用完整日期时间或仅时间。
restart-dates:
# 包含完整日期和时间的示例
- "2025-03-08 03:00:00"
- "2025-03-09 15:00:00"
# 仅包含时间的示例(无日期)
- "03:00:00"
- "15:00:00"
# Discord 机器人设置
discord-mode: "none" # "bot" - 使用机器人, "webhook" - 使用 Webhook, "none" - 禁用 Discord 消息
# 机器人设置(当 discord-mode = "bot" 时使用)
discord-bot-token: "YOUR_BOT_TOKEN_HERE" # 您的 Discord 机器人令牌
discord-channel-id: "YOUR_CHANNEL_ID_HERE" # 发送消息的频道 ID
# Webhook 设置(当 discord-mode = "webhook" 时使用)
discord-webhook-url: "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL" # 您的 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"
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"
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RestartAR
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
支持最高版本 26.2
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。



评论 0
登录后参与评分
还没有评论,来抢沙发吧