## AutoUpdateGeyser
**更多信息、指南和最新版本:** [GitHub – AutoUpdateGeyser](https://github.com/NewAmazingPVP/AutoUpdateGeyser)
**功能**
自动按照计划更新 **Geyser** 和 **Floodgate**。
**适用于**: Spigot/Paper/Folia, Velocity, BungeeCord
**使用方法**
1. 将 jar 文件放入 `plugins/` 目录 (或在 Velocity/Bungee 上放入你的代理)。
2. 启动服务器一次以生成配置文件。
3. 编辑配置文件以启用/禁用 Geyser 或 Floodgate,并设置检查间隔。
4. (可选) 使用 `/updategeyser` 命令手动检查。
**命令**
* `/updategeyser` — 立即运行更新检查 *(perm: `autoupdategeyser.admin`)*
**权限**
* `autoupdategeyser.admin` — 允许手动检查
**配置 (YAML)**
```yaml
# Geyser 和 Floodgate 的更新设置
# geyser: default = true # 设置为 true 以启用 Geyser 更新,false 以禁用
# floodgate: default = true # 设置为 true 以启用 Floodgate 更新,false 以禁用
# interval: default = 60 # 更新检查间隔,单位为分钟
# bootTime: default = 5 # 插件应在服务器完全加载完成后等待的秒数,以开始其更新检查过程。 设置过低可能会导致错误
# autoRestart: default = false # 每次安装新更新时,插件是否应自动重启服务器/代理 (延迟 10 秒)? 不建议这样做,因为玩家可能没有意识到。
updates:
geyser: true # 设置为 true 以启用 Geyser 更新,false 以禁用
floodgate: true # 设置为 true 以启用 Floodgate 更新,false 以禁用
interval: 60 # 更新检查间隔,单位为分钟
bootTime: 5 # 插件应在服务器完全加载完成后等待的秒数,以开始其更新检查过程。 设置过低可能会导致错误
autoRestart: false # 每次安装新更新时,插件是否应自动重启服务器/代理 (延迟 conmfigured 秒)?
# 注意它在 Spigot 上执行“restart”命令,在 Bungeecord 上执行“end”命令,并且假设您有一个内置功能/脚本,可以在每次关闭时重启服务器/代理
restartDelay: 60 # 重启延迟,单位为秒
restartMessage: "服务器将在短时间内重启!" # 在重启计划延迟时发送的初始消息
```
**支持**
GitHub Issues: https://github.com/NewAmazingPVP/AutoUpdateGeyser/issues
Discord: https://discord.gg/u3u45vaV6G
---