Skip to content

Releases: ddaodan-minecraft/AdminManager

v1.2

Choose a tag to compare

@github-actions github-actions released this 29 Dec 10:53

Full Changelog: v1.1...v1.2

🌟 主要更新(v1.2)

🚀 性能与稳定性

  • 修复配置文件监听的异步任务无限堆积问题
  • 长时间运行后 TPS 下降的情况得到解决

📝 English Summary (v1.2)

🚀 Performance & Stability

  • Fixed an issue where config watcher tasks kept piling up asynchronously
  • Prevents TPS degradation after long uptime

v1.1

Choose a tag to compare

@ddaodan ddaodan released this 20 Dec 18:49

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.gradleplugin.yml 版本号至 1.1
  • 更新检查:
    • 将更新检查地址切换为新的 GitHub 仓库 ddaodan-minecraft/AdminManager
    • 版本比较时自动忽略 tag 前缀 v(例如 v1.11.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

v1.0

Choose a tag to compare

@ddaodan ddaodan released this 27 Nov 09:13

🎮 AdminManager v1.0 发布啦!

这是一个全面的Minecraft Spigot服务器管理插件的第一个正式版本。

🛠️ 核心功能

🚧 维护模式

轻松启用或禁用服务器维护模式,当服务器需要维护时,可以阻止玩家进入并显示自定义消息。

👤 Sudo命令

以另一个玩家的身份执行任意命令,方便管理员测试权限或帮助玩家解决问题。

🔧 命令别名

创建自定义命令别名,简化复杂命令的输入,提高管理效率。

📋 完整命令列表

🎯 管理命令 (/am)

  • /am reload - 重新加载配置文件,无需重启服务器即可应用配置更改
  • /am version - 查看插件版本信息
  • /am mt [on|off] - 切换维护模式开关
  • /am sudo <player> <command> - 以指定玩家身份执行命令
  • /am alias add <alias> <command> - 添加新的命令别名
  • /am alias remove <alias> - 删除现有命令别名
  • /am alias list - 显示所有已配置的命令别名

⚙️ 安装说明

  1. AdminManager-1.0.jar 文件放入服务器的 plugins 目录
  2. 重启服务器以加载插件
  3. 插件会自动生成默认配置文件和语言文件

享受您的服务器管理新体验!