Skip to content

v1.1

Choose a tag to compare

@ddaodan ddaodan released this 20 Dec 18:49
· 9 commits to main since this release

Full Changelog: v1.0...v1.1

🌟 主要更新(v1.1)

📢 公告系统

  • 新增 /announce 与 /am announce 公告指令
  • 聊天栏公告带有独立「公告」前缀,不再使用插件名前缀
  • 支持 BossBar 公告,颜色可根据公告中第一个颜色代码自动匹配
  • 支持 Title 公告展示
  • 公告 BossBar 与 Title 的持续时间可在 announce 配置中自定义

⏱ 关服倒计时

  • 新增 /shutdown 与 /am shutdown 启动关服倒计时
  • 新增 /shutdown cancel 与 /am shutdown cancel 取消正在进行的倒计时
  • 支持配置关服总倒计时时长(秒)
  • 支持通过 shutdown.reminder_times_seconds 自定义每次提醒的剩余秒数(越接近结束可以越频繁)
  • 每次提醒会:
    • 在聊天栏发送倒计时消息
    • 通过 Title 显示剩余时间
    • 播放提示音(最后 5 秒音调升高)
  • BossBar 实时显示剩余时间和倒计时进度

🚧 维护模式增强

  • 维护模式启用后,现在会为拥有 adminmanager.admin 权限的管理员展示持续的 BossBar 提示

🔄 配置自动更新与热重载

  • 新增配置文件自动更新功能:
    • 插件更新后,会读取新版本内置的 config.yml
    • 自动将缺失的配置块和注释追加到现有 config.yml 末尾
    • 不会覆盖、不重排、不删除你原有的配置项和注释
  • 保留原有的文件监视功能:
    • 手动修改 config.yml 后会自动热重载配置,无需重启服务器

🧩 其它改动

  • 为 /announce 和 /am announce 增加 Tab 自动补全:
    • 自动补全 -b(BossBar)和 -t(Title)参数
  • 修复 Gradle 构建配置:
    • 去掉与 Gradle 9 不兼容的 Shadow 插件配置
    • 更新 build.gradle 与 plugin.yml 版本号至 1.1
  • 更新检查:
    • 将更新检查地址切换为新的 GitHub 仓库 ddaodan-minecraft/AdminManager
    • 版本比较时自动忽略 tag 前缀 v(例如 v1.1 与 1.1 视为相同)

⚙️ 配置示例(节选)

# 维护模式设置
maintenance:
  enabled: false
  motd: "&c服务器维护中...\n&7请稍后再试!"
  kick-message: "服务器正在维护中,请稍后再试!"

# 多语言
language: "zh_CN"

# 公告相关设置
announce:
  bossbar_duration_ticks: 200      # BossBar 持续时间(tick)
  title_fade_in: 10                # Title 淡入时间(tick)
  title_stay: 70                   # Title 停留时间(tick)
  title_fade_out: 20               # Title 淡出时间(tick)

# 关服倒计时设置
shutdown:
  duration_seconds: 300            # 总倒计时时长(秒)
  # 每次提醒的剩余秒数(从大到小)
  reminder_times_seconds:
    - 300
    - 240
    - 180
    - 120
    - 60
    - 30
    - 10
    - 5
    - 4
    - 3
    - 2
    - 1
  # 当上面列表为空时使用的固定间隔(秒)
  reminder_interval_seconds: 60

📝 English Summary (v1.1)

  • New Announcement System

    • /announce and /am announce to broadcast messages
    • Dedicated "Announcement" prefix in chat
    • Optional BossBar and Title announcements
    • BossBar color follows the first text color in the message
    • Configurable BossBar and Title durations
  • New Shutdown Countdown

    • /shutdown and /am shutdown to start a timed shutdown
    • /shutdown cancel and /am shutdown cancel to cancel the countdown
    • Configurable total countdown duration (seconds)
    • Custom reminder times via shutdown.reminder_times_seconds
    • Each reminder is shown in chat, via Title, and with a sound
    • BossBar shows remaining time and progress
  • Maintenance Mode improvements

    • Admins with adminmanager.admin see a persistent BossBar warning when maintenance mode is enabled
  • Config Auto Update & Hot Reload

    • On plugin update, new default config sections and comments are appended to the existing config.yml
    • Existing options and comments are preserved and not overwritten
    • The file watcher still hot-reloads config.yml when edited
  • Other

    • Tab completion for /announce and /am announce
    • Build fixes and update checker repo URL updated
    • Version bumped to 1.1