? AutoServerUpdaterX
无需动手,即可保持服务器运行在最新的安全和性能补丁上。
本项目是 AutoServerUpdater 原版的一个 fork(分支),专门更新以兼容现代服务器基础设施和最新的 API 标准。
如果你也希望插件能够自动更新,建议使用 AutoUpdatePlugins!
? 为什么需要这个 fork?
当 PaperMC 将其下载服务从 Bibliothek (v2) 迁移到 Fill (v3) 并弃用旧版端点后,原版插件无法正常工作。此 fork 解决了这些连接问题,并引入了更稳健的构建版本跟踪逻辑。
✨ 主要功能
- API v3 支持: 完全兼容新的 PaperMC Fill 下载服务。
- 智能构建版本跟踪: 扫描所有可用的 API 元数据以识别最高的构建 ID,确保即使对于 Alpha 和 Experimental 版本的准确性。
- 可配置的更新操作: 可选择使用 Spigot 原生的
RESTART(重启)或干净的 STOP(停止),非常适合 Docker 或 Pterodactyl 用户。
- User-Agent 合规性: 实现强制的身份标识头信息,以符合 PaperMC 最新的服务器基础设施要求。
? 支持的软件
? 配置
插件首次运行时会在目录下生成一个 config.yml 文件。你可以自定义下载后的行为:
# 选项:
# RESTART - 使用 Spigot 的重启命令(默认值)。
# STOP - 安全地关闭服务器。推荐用于循环脚本中。
update-action: RESTART
⚠️ 免责声明
[!DANGER]
在生产环境中使用自动更新器风险自负。此插件会覆盖你当前运行的服务器 JAR 文件。在启用自动更新之前,请务必确保已配置定期备份。
关于 while true 循环的重要提示:
如果你使用的是启动循环(例如 while true; do java...; done),强烈建议将 update-action 设置为 STOP。
在 Shell 循环中使用 RESTART 往往会导致旧实例尚未完全终止时便触发新服务器实例,这可能导致以下问题:
Failed to bind to port 错误(端口已被占用)。
session.lock 错误(世界文件已被占用)。
- 僵尸进程(多个实例同时运行)。
注意: 如果你的主机未配置重启脚本或循环,服务器将在应用更新时关闭,但不会自动重新启动。
⚖️ 许可证与 Fork 信息
- 分歧说明: 此版本完全重写了 API 获取逻辑(切换至 Fill v3),通过 Jackson 添加了 JSON 解析功能,并实现了强制性的 User-Agent 头和可配置的关机逻辑。
- 原始许可证: 原始项目采用 MIT License。
? AutoServerUpdaterX
Keep your server running on the latest security and performance patches without lifting a finger.
This project is a fork of the original AutoServerUpdater, specifically updated to maintain compatibility with modern server infrastructures and the latest API standards.
I recommend using AutoUpdatePlugins if you want your plugins to be updated automatically as well!
? Why this fork?
The original plugin broke after PaperMC migrated their download service from Bibliothek (v2) to Fill (v3) and deprecated legacy endpoints. This fork resolves those connection issues and introduces more robust build-tracking logic.
✨ Key Features
- API v3 Support: Fully compatible with the new PaperMC Fill download service.
- Intelligent Build Tracking: Scans all available API metadata to identify the highest build ID, ensuring accuracy even for Alpha and Experimental releases.
- Configurable Update Actions: Choose between a Spigot-native
RESTART or a clean STOP (perfect for Docker or Pterodactyl users).
- User-Agent Compliance: Implements mandatory identity headers to comply with PaperMC's latest infrastructure requirements.
? Supported Software
? Configuration
The plugin creates a config.yml on the first run. You can customize the behavior after a download:
# Options:
# RESTART - Uses Spigot's restart command (default).
# STOP - Safely shuts down the server. Recommended for loop scripts.
update-action: RESTART
⚠️ Disclaimer
[!DANGER]
Using auto-updaters in production environments is at your own risk. This plugin overwrites your active server JAR. Always ensure you have regular backups configured before enabling automated updates.
Important regarding while true loops:
If you are using a startup loop (e.g., while true; do java...; done), it is highly recommended to set update-action to STOP.
Using RESTART in combination with a shell loop often triggers a new server instance before the old one has fully terminated. This can lead to:
Failed to bind to port errors (Port already in use).
session.lock errors (World already in use).
- Zombie processes (Multiple instances running simultaneously).
Note: If no restart script or loop is configured on your host, the server will shut down to apply the update but will not automatically start back up.
⚖️ License & Fork Information
- Divergence: This version contains a complete rewrite of the API fetching logic (switching to Fill v3), adds JSON parsing via Jackson, and implements mandatory User-Agent headers and configurable shutdown logic.
- Original License: The original project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧