AutoRoutine

插件

· 作者 notnockiee

AutoRoutine 是一款 Minecraft 插件,能够按照预设计划自动重启服务器,支持聊天栏、Boss 血条和动作栏通知、声音提醒以及 HEX 颜色代码。

0 本站下载 0 关注 更新于 10 个月前

最新 1.0.0 · 1.21.10 · Paper / Purpur

一键开服(送7天)

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

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源