AutoRoutine
AutoRoutine 是一款 Minecraft 服务器插件,能够按照固定时间表或在手动指定的时间自动重启服务器。 它通过定期重启服务器来保持服务器的稳定性,并提前向玩家发出清晰的通知。
该插件提供多种通知方式(Bossbar、actionbar)、声音警报,以及完整的 HEX 颜色支持,用于自定义消息。
功能
-
自动定时服务器重启(24小时制)
-
通过命令手动规划重启
-
重启前的倒计时
-
Bossbar 和 actionbar 通知
-
不同重启阶段的声音通知
-
HEX 颜色支持 (#RRGGBB)
-
完全可通过 config.yml 进行配置
命令
/autoroutine reload — 重新加载插件配置。
/autoroutine plan <time> — 在指定时间计划服务器重启。
示例:/autoroutine plan 09:50
权限
autoroutine.reload — 允许重新加载配置
autoroutine.plan — 允许计划重启
配置示例
# AutoRoutine Configuration
# Plugin for automatic server restarts
# Times for server restart (24-hour format)
restart-times:
- "00:00"
- "06:00"
- "12:00"
- "18:00"
# Commands to execute on restart
# You can use the 'sleep' command to add delays between commands (e.g., "sleep 5" for 5 seconds)
restart-commands:
- "say Server is restarting!"
- "sleep 5"
- "kickall &cServer restart"
# Countdown start time (minutes before restart)
countdown-start-minutes: 30
# Notifications
notifications:
bossbar:
enabled: true
text: "#C7A3D1Server restart in #FFFF55%time%"
# Available colors: PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE
# Available styles: SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20
# You can also use HEX colors in the text (e.g., #FF5555)
color: "WHITE"
style: "SEGMENTED_20"
actionbar:
enabled: true
text: "#C7A3D1Restart in #FFFF55%time%"
chat:
enabled: true
text: "#FF5555Server will restart in #FFFF55%time%"
interval-minutes: 10
# Messages
messages:
usage: "#FF5555Usage: /autoroutine reload|plan <time>"
usage-example: "#AAAAAAExample: /autoroutine plan 9:50"
plan-usage: "#FF5555Usage: /autoroutine plan <time>"
plan-usage-example: "#AAAAAAExample: /autoroutine plan 9:50 or /autoroutine plan 09:50"
restart-planned: "#55FF55Restart planned for %time%"
no-permission-reload: "#FF5555You don't have permission to reload the config!"
no-permission-plan: "#FF5555You don't have permission to plan a restart!"
config-reloaded: "#C7A3D1AutoRoutine config reloaded!"
# Sounds
sounds:
start:
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"
enabled: true
notify:
sound: "BLOCK_NOTE_BLOCK_PLING"
enabled: true
ten-seconds:
sound: "ENTITY_PLAYER_LEVELUP"
enabled: true
restart:
sound: "ENTITY_ENDER_DRAGON_GROWL"
enabled: true
volume: 1.0
pitch: 1.0
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
使床在所有维度中爆炸的模组
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
自定义你的Minecraft头像!
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
评论 0
登录后参与评分
还没有评论,来抢沙发吧