? SmartRestart
SmartRestart 是一款简洁、轻量且完全可配置的服务端重启与停止倒计时插件。管理员只需一条命令即可安排重启或关闭服务器——所有在线玩家会立即看到一个实时 BossBar,精确显示剩余分钟和秒数。无需复杂设置,无需数据库,直接放入服务器文件夹即可使用。
随着时间流逝,BossBar 的颜色会动态变化,在预设的时间间隔播放警告音效,并在最后几秒于屏幕上弹出标题提示。所有功能——包括颜色、音效、警告间隔、踢出消息以及语言——均可通过单一的 config.yml 进行控制。
⌨️ 命令
| 命令 |
别名 |
权限 |
描述 |
默认值 |
/srestart <minutes> |
/rs |
smartrestart.admin |
安排服务器重启倒计时 |
? OP |
/sstop <minutes> |
/stop |
smartrestart.admin |
安排服务器关闭倒计时 |
? OP |
/scancel |
/cancelrestart |
smartrestart.admin |
取消当前进行的倒计时 |
? OP |
? 权限
| 权限 |
默认值 |
描述 |
smartrestart.admin |
OP |
安排和取消倒计时 |
smartrestart.notify |
All |
接收 BossBar 和聊天警告 |
smartrestart.bypass |
Off |
在服务端重启或关闭时不会被踢出 |
? BossBar 行为
| 剩余时间 |
栏颜色 |
| > 2 分钟 |
? 绿色 |
| ≤ 2 分钟 |
? 黄色 |
| ≤ 30 秒 |
? 红色 |
| ≤ 5 秒 |
? 红色 + SOLID 样式 |
BossBar 的标题始终显示为 MM:SS 格式的精确剩余时间——对于更长的倒计时则显示为 HH:MM:SS。
⚙️ 配置特性
settings:
language: de # en, de
restart-kick-message: "..." # 玩家被踢出时显示的消息
stop-kick-message: "..."
warn-at-seconds: # 在这些剩余秒数时发送聊天警告
- 300
- 120
- 60
- 30
- 10
- 5
- 4
- 3
- 2
- 1
bossbar-color-green-above-seconds: 120
bossbar-color-yellow-above-seconds: 30
warn-sound: BLOCK_NOTE_BLOCK_PLING
final-sound: ENTITY_WITHER_SPAWN
show-title-at-seconds: 10 # 在最后 N 秒内显示标题和副标题
announce-cancel: true # 倒计时取消时广播通知
- 通过一行配置即可切换英文和德文
- 可配置的警告间隔——可在任意设定的剩余秒数发送聊天消息
- 动态 BossBar 颜色——随时间流逝由绿变黄再变红
- 最后几秒显示标题,阈值可配置
- 音效反馈——每次警告及服务器关闭时均有声音提示
- 豁免权限——管理员在重启期间保持连接
- 倒计时期间加入服务器的玩家会立即看到 BossBar
- 所有消息均支持在
config.yml 中按语言完全自定义
? 语言支持
| 代码 |
语言 |
en |
?? English |
de |
?? Deutsch |
?️ 兼容性
| 服务端软件 |
版本 |
支持情况 |
| Paper |
1.21 – 1.21.1+ |
✅ |
| Purpur |
1.21 – 1.21.1+ |
✅ |
| Spigot |
1.21 – 1.21.1+ |
✅ |
| Bukkit |
1.21 – 1.21.1+ |
✅ |
| Folia |
1.21 – 1.21.1+ |
✅ |
需要 Java 21。
? 支持与更新: 加入我们的 Discord
? SmartRestart
SmartRestart is a clean, lightweight and fully configurable server restart and stop countdown plugin. Admins schedule a restart or stop with a single command — every online player immediately sees a live BossBar counting down in exact minutes and seconds. No complicated setup, no database, just drop it in and go.
The BossBar color changes dynamically as time runs out, warning sounds play at configurable intervals and a title flashes on screen in the final seconds. Everything — colors, sounds, warning intervals, kick messages and language — is controlled through a single config.yml.
⌨️ Commands
| Command |
Alias |
Permission |
Description |
Default |
/srestart <minutes> |
/rs |
smartrestart.admin |
Schedule a server restart countdown |
? OP |
/sstop <minutes> |
/stop |
smartrestart.admin |
Schedule a server stop countdown |
? OP |
/scancel |
/cancelrestart |
smartrestart.admin |
Cancel the active countdown |
? OP |
? Permissions
| Permission |
Default |
Description |
smartrestart.admin |
OP |
Schedule and cancel countdowns |
smartrestart.notify |
All |
Receives the BossBar and chat warnings |
smartrestart.bypass |
Off |
Not kicked when the server restarts or stops |
? BossBar Behavior
| Remaining Time |
Bar Color |
| > 2 minutes |
? Green |
| ≤ 2 minutes |
? Yellow |
| ≤ 30 seconds |
? Red |
| ≤ 5 seconds |
? Red + SOLID style |
The BossBar title always shows the exact remaining time in MM:SS format — or HH:MM:SS for longer countdowns.
⚙️ Config Features
settings:
language: de # en, de
restart-kick-message: "..." # Message shown to players when kicked
stop-kick-message: "..."
warn-at-seconds: # Chat warnings at these remaining seconds
- 300
- 120
- 60
- 30
- 10
- 5
- 4
- 3
- 2
- 1
bossbar-color-green-above-seconds: 120
bossbar-color-yellow-above-seconds: 30
warn-sound: BLOCK_NOTE_BLOCK_PLING
final-sound: ENTITY_WITHER_SPAWN
show-title-at-seconds: 10 # Title + subtitle shown in final N seconds
announce-cancel: true # Broadcast when countdown is cancelled
- Switch between English and German with one line
- Configurable warning intervals — chat message at any remaining second you define
- Dynamic BossBar color — green → yellow → red as time runs out
- Title display in the final seconds with configurable threshold
- Sound effects at every warning and on server shutdown
- Bypass permission — admins stay connected during restart
- Players who join during a countdown immediately see the BossBar
- All messages fully customizable per language in
config.yml
? Language Support
| Code |
Language |
en |
?? English |
de |
?? Deutsch |
?️ Compatibility
| Server Software |
Version |
Supported |
| Paper |
1.21 – 1.21.1+ |
✅ |
| Purpur |
1.21 – 1.21.1+ |
✅ |
| Spigot |
1.21 – 1.21.1+ |
✅ |
| Bukkit |
1.21 – 1.21.1+ |
✅ |
| Folia |
1.21 – 1.21.1+ |
✅ |
Java 21 required.
? Support & Updates: Join our Discord
评论 0
登录后参与评分
还没有评论,来抢沙发吧