AfkViewDistance 是一款轻量级的 Paper/Purpur 插件,通过静默降低离线玩家的区块渲染距离来节省服务器内存。与其让所有玩家静止不动时仍保持完整的视距,该插件会根据玩家停留 AFK 的时间长短,在三个可配置的阶段中逐步降低空闲玩家的视距。
默认情况下,闲置一分钟的玩家视距降至 3 个区块,三分钟降至 2 个区块,五分钟降至 1 个区块。一旦检测到任何被追踪的活动——移动、交互、聊天、使用命令或打开物品栏——玩家将被静默恢复至其原始视距,并且计时器重置。
所有内容均可在 config.yml 中进行配置——包括各阶段的时间间隔、区块数值、活动判定标准以及各阶段的提示信息。还提供了一项绕过权限,供管理员或 VIP 玩家使用,确保他们的视距不会被调整。
兼容软件
- Paper 1.21+
- Purpur 1.21+
- Pufferfish 1.21+
- Leaves 1.21+
- 其他基于 Paper 的分支 1.21+
- Spigot — 不支持
- Forge / Fabric — 不支持
命令与权限
| 命令 |
描述 |
权限 |
| /avd reload |
重新加载配置文件 |
afkviewdistance.admin |
| /avd status [player] |
查看玩家的 AFK 阶段及闲置时间 |
afkviewdistance.admin |
| afkviewdistance.bypass |
豁免某玩家不被降低视距 |
默认:false |
AfkViewDistance is a lightweight Paper/Purpur plugin that saves server RAM by quietly lowering the chunk render distance of inactive players. Instead of all players holding full view distance while standing still, idle players are stepped down across three configurable stages the longer they remain AFK.
By default, a player idle for one minute drops to 3 chunks, three minutes drops to 2 chunks, and five minutes drops to 1 chunk. The moment any tracked activity is detected — movement, interaction, chat, commands, or opening an inventory — the player is silently restored to their original view distance and the timer resets.
Everything is configurable in config.yml — stage timings, chunk values, what counts as activity, and per-stage messages. A bypass permission is available for staff or VIP players who should never have their view distance touched.
Compatible software
- Paper 1.21+
- Purpur 1.21+
- Pufferfish 1.21+
- Leaves 1.21+
- Any other Paper fork 1.21+
- Spigot — not supported
- Forge / Fabric — not supported
Commands and permissions
| Command |
Description |
Permission |
| /avd reload |
Reloads the config |
afkviewdistance.admin |
| /avd status [player] |
Check AFK stage and idle time |
afkviewdistance.admin |
| afkviewdistance.bypass |
Exempt a player from reduction |
default: false |
评论 0
登录后参与评分
还没有评论,来抢沙发吧