Skip to content

Releases: ddaodan-minecraft/AdminManager

v1.3

Choose a tag to compare

@github-actions github-actions released this 30 Jul 04:44

Full Changelog: v1.2...v1.3

🌟 主要更新(v1.3)

🔐 玩家登录信息

  • 新增玩家登录信息记录功能
  • 新增 /logininfo <玩家> 与 /am logininfo <玩家> 查询指令
  • 支持查询玩家 ID、UUID、上次登录时间、上次登录 IP、本次登录时间、本次登录 IP
  • 支持记录玩家登录坐标、所在世界与客户端信息
  • 登录信息统一保存到插件目录下的 data.db,方便后续功能继续接入

🌐 IP 归属地

  • 新增 IP 归属地记录与查询
  • 支持 IPv4 与 IPv6 归属地数据库
  • IP 数据库仅在文件不存在时下载,避免每次启动重复下载
  • 下载过程使用临时文件写入,降低异常中断导致数据库损坏的风险

📦 插件体积优化

  • 插件改为轻量化发布包,不再内置 SQLite、ip2region、SLF4J 等运行时依赖
  • 启动时优先使用服务端已有依赖
  • 服务端缺少依赖时,自动下载到 plugins/AdminManager/libs/
  • 发布 Jar 体积大幅降低

🔧 配置与稳定性

  • 修复 aliases 配置项在已有情况下仍被重复追加的问题
  • 移除不需要暴露的默认配置项,减少配置文件噪音
  • 优化 IP 数据库下载与加载流程,减少 Windows 文件占用导致的更新失败

📝 English Summary (v1.3)

🔐 Player Login Information

  • Added player login information tracking
  • Added /logininfo <player> and /am logininfo <player> commands
  • Stores player ID, UUID, previous login time/IP, current login time/IP, location, world, and client information
  • Login data is saved in data.db for future feature integration

🌐 IP Location

  • Added IP location lookup and storage
  • Supports both IPv4 and IPv6 databases
  • IP databases are downloaded only when missing
  • Uses temporary files during download to reduce the risk of corrupted database files

📦 Smaller Plugin Jar

  • Runtime dependencies are no longer bundled into the plugin jar
  • Existing server-side dependencies are used first when available
  • Missing dependencies are downloaded automatically into plugins/AdminManager/libs/
  • Significantly reduced release jar size

🔧 Config & Stability

  • Fixed repeated aliases entries being appended to config.yml
  • Removed unnecessary default config sections
  • Improved IP database download and reload handling on Windows

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.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

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. 插件会自动生成默认配置文件和语言文件

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