AntiFly
专注于一件事的飞行限制。 由 CevAPI 开发的轻量级 Bukkit + Fabric 插件/模组。
当前版本:1.1.7
AntiFly 不是一个完整的反作弊系统,这是刻意为之。它专为那些只想限制飞行且仅此一项的服务器而构建——没有距离检测、没有杀戮光环启发式分析、没有在凌晨三点悄悄标记玩家的战斗模块。你得到的是足够精准的飞行控制,不会干扰合法移动。
为什么选择 AntiFly
- 绝不信任客户端。 地面和支撑点均在服务端验证。声称
onGround的客户端无法通过言语绕过检查。 - 分层检测,而非单一阈值。 缓冲空中状态、悬停和防踢怀疑机制与持续空中状态的后备措施并存,因此缓慢的水平飞行和轻微的上下浮动也会被捕获——不仅仅是明显的速度作弊。
- 无人抱怨的惩罚措施。 玩家会被纠正到他们最后已知的有效支撑点位置,而不是在半空中被强行拽出天空。
- 正确处理鞘翅。 轨迹验证器根据俯仰角、偏航角和先前速度预测下一个原版滑翔步骤,然后权衡剩余运动、多余能量、不自然的恒定速度和不可能的转弯——仅在多个通道达成一致时才采取行动。火箭推进、陡峭俯冲、拉起和障碍物碰撞均不受影响。
- 感知传送。
/tp、末影珍珠、紫颂果和传送门会被重新定位,而不是被误认为飞行,因此合法旅行不会出现橡皮筋现象。 - 感知坐骑和弹跳。 载具检查考虑了正常的骑乘、跳跃和受支持的移动,包括骆驼和鹦鹉螺的冲刺。床和黏液块的反弹单独处理,不属于可疑飞行。
- 实时控制和诊断。 工作人员可以在无需重启的情况下启用或禁用单个检查,并在调试消息中查看是哪个检查导致了干预。
- 不自我宣传。 根命令在两个平台上都受到权限限制,因此使用建议数据包探测服务器命令列表的客户端将一无所获。
- 共享移动逻辑。 Paper 和 Fabric 共享核心移动逻辑,平台特定的检查和控制在配置指南中列出。
饥饿模式
硬块并不总是生存服务器想要的。/antifly hungermode on 将其替换为符合游戏规则的惩罚:
- 首先消耗食物,其消耗量随速度缩放,且在 airborne 时永远不会低于最小值——因此即使静止悬停的玩家也要付出代价。
- 然后是生命值,一旦飞行持续时间足够长(或者玩家已经处于饥饿状态)。伤害以较慢的速度发生,因此尝试着陆总是可以生存的。
- 除非移动显示出真正的利用证据,否则原版滑翔和火箭保持免费。
结果是:没有橡皮筋现象,没有传送循环投诉,以及一种自然抑制飞行的经济体系,而不是一堵仅仅让玩家感到沮丧的墙。
虚空(下界屋顶/基岩层下方)访问
一个附加开关,供希望同时关闭虚空的服务器使用。/antifly voidaccess off 涵盖下界屋顶(Y ≥ 128)、下界下方的虚空以及主世界下方的虚空。
- 当饥饿模式关闭时,进入虚空的玩家将被返回到他们最后的安全位置,包括在骑乘状态下。
- 当饥饿模式开启时,允许进入但直接扣除生命值——进入时受到一次攻击,之后每秒一次,只要他们留在虚空中。此处跳过通常的饥饿阶段,豁免玩家不受影响。
平台支持
- Bukkit 系列:1.21.x - 26.3(Bukkit, Spigot, Paper, Purpur, Folia)
- Fabric:1.21.11 / 26.1.2 / 26.2 / 26.3
构建
./gradlew build
产物位于 paper/build/libs/ 和各个 fabric_*/build/libs/ 中。
所有四个 Fabric 目标编译同一个共享源代码树(fabric_shared/)。每个 fabric_*/build.gradle 中仅 Minecraft、加载器和 Fabric API 的版本不同,因此无需同步每个版本的 Java 代码——对检查的任何更改都会自动出现在每个 Fabric jar 中。
服务器兼容性
Paper 构建是仅针对最旧支持的 API(1.21.1)编译一次的,因此单个 jar 可在从 1.21.x 到 26.3 的所有 Bukkit 系列服务器上运行。每次构建都会重新验证源代码是否仍能链接到最旧的 Paper API、最新的 Paper API 以及纯 Spigot/Bukkit:
./gradlew :paper:checkPaperApiCompatibility
任何仅存在于某些服务器上的功能会在运行时探测并回退到纯 Bukkit:
- 区域调度器(Paper/Purpur/Folia),带有 Bukkit 调度器回退
- Folia 实体调度,以便饥饿模式的生命值更改在与玩家关联的线程上运行
Entity#isInLava(),带有方块探测回退- Adventure 动作栏(Paper 系列);没有它的服务器 simply 不显示调试动作栏
安装
- Bukkit 系列:将 jar 放入
plugins/ - Fabric:将 jar 放入
mods/
命令
Paper 和 Fabric 使用相同的命令集。在 Paper 上需要 op 或 antifly.admin 权限,在 Fabric 上需要 moderator 级别权限。
/antifly enable|disable|status|help/antifly hungermode <on|off>- 用饥饿和生命惩罚替换硬块/antifly voidaccess <on|off>- 允许或阻止虚空(默认开启)/antifly alerts <off|game|console|both>- 违规警报发送到的位置/antifly reload- 从磁盘重新读取配置,无需重启/antifly set- 列出所有可调整键及其当前值/antifly check [name] [on|off]- 列出、检查或切换单个检查/antifly debug <on|off>- 向玩家显示干预消息、原因和相关控制
还提供:/antifly set <key> [value]、/antifly exempt / unexempt、/antifly reset 和 /antifly disabledworlds。完整命令参考请参见 CONFIGURATION.md。
配置
使用 /antifly set <key> <value> 调整可用设置,使用 /antifly check <name> <on|off> 控制单个检测项。更改会即时生效并自动保存。部分检测项存在重叠,因此另一个已启用的检测项仍可能纠正相同的移动行为;并非所有阈值都可单独调整。
默认值设定得较为宽松,以兼容原版移动方式——冲刺、深海探索者、海豚的恩赐、速度药水、风弹、击退和火箭均被视为正常行为且不会受到惩罚——因此常见的使用场景确实是“安装后无需再管”。
- Paper / Bukkit:
plugins/AntiFly/config.yml - Fabric:
config/antifly.json
CONFIGURATION.md 文档详细记录了每个键及其默认值、完整的命令参考、翼龙轨迹验证器的深入解析、饥饿模式与虚空调优,以及哪些键是平台特定的。
权限(Paper)
antifly.admin(默认:op) ·antifly.alerts(默认:op)
许可证
GNU 通用公共许可证 v3.0 或更高版本(GPL-3.0-or-later)——详见 LICENSE.txt。
AntiFly
Flight restriction that does one job properly. Lightweight Bukkit + Fabric plugin/mod by CevAPI.
Current release: 1.1.7
AntiFly is not a full anti-cheat, and that is deliberate. It is built for servers that want to restrict flight and nothing else - no reach checks, no killaura heuristics, no combat module quietly flagging your players at 3am. What you get instead is flight control accurate enough to leave legitimate movement alone.
Why AntiFly
- It never trusts the client. Ground and support are verified server-side. A client claiming
onGroundcannot talk its way past a check. - Layered detection, not one threshold. Buffered air, hover and anti-kick suspicion sit alongside a sustained-air backstop, so slow level flight and gentle bobbing are caught - not just obvious speed hacks.
- Setbacks nobody complains about. Players are corrected to their last known valid support instead of being yanked out of the sky mid-air.
- Elytra handled properly. A trajectory verifier predicts the next vanilla glide step from pitch, yaw and prior velocity, then weighs residual motion, excess energy, unnaturally constant speed and impossible turns - and only acts when several channels agree. Rocket boosts, steep dives, pull-ups and obstacle crashes are all left alone.
- Teleport-aware.
/tp, ender pearls, chorus fruit and portals are rebased rather than mistaken for flight, so legitimate travel never rubber-bands. - Mount and bounce aware. Vehicle checks account for normal riding, jumps and supported movement, including camel and nautilus dashes. Bed and slime-block rebounds are handled separately from suspicious flight.
- Live controls and diagnostics. Staff can enable or disable individual checks without restarting and see which check caused an intervention in debug messages.
- It does not advertise itself. The root command is permission-gated on both platforms so clients that probe a server's command list with suggestion packets get nothing back.
- Shared movement logic. Paper and Fabric share core movement logic, with platform-specific checks and controls listed in the configuration guide.
Hunger Mode
Hard blocks are not always what a survival server wants. /antifly hungermode on replaces them with a penalty that fits the game:
- Food drains first, scaling with speed and never falling below a minimum while airborne - so an idle hoverer still pays.
- Then health, once the flight has lasted long enough (or the player is already starving). Damage ticks slowly, so a landing attempt is always survivable.
- Vanilla gliding and rockets stay free unless the movement shows genuine exploit evidence.
The upshot: no rubber-banding, no teleport-loop complaints, and an economy that discourages flight naturally instead of a wall that just frustrates players.
Void (Nether Roof/Below Bedrock) Access
A bonus toggle for servers that want to close off the void as well. /antifly voidaccess off covers the Nether roof (Y ≥ 128), the void below the Nether and the void below the Overworld.
- With Hunger Mode off, players who enter are returned to their last safe position, including while mounted.
- With Hunger Mode on, entry is allowed but costs health directly - one hit on entry, then once per second while they stay. The usual hunger phase is skipped here, and exempt players are spared.
Platforms
- Bukkit family: 1.21.x - 26.3 (Bukkit, Spigot, Paper, Purpur, Folia)
- Fabric: 1.21.11 / 26.1.2 / 26.2 / 26.3
Build
./gradlew build
Artifacts land in paper/build/libs/ and each fabric_*/build/libs/.
All four Fabric targets compile one shared source tree (fabric_shared/). Only the Minecraft, loader and Fabric API versions in each fabric_*/build.gradle differ, so there is no per-version Java code to keep in sync - a change to the checks is automatically in every Fabric jar.
Server compatibility
The Paper build is compiled once against the oldest supported API (1.21.1) so a single jar runs on every Bukkit-family server from 1.21.x up to 26.3. Every build re-verifies that the sources still link against the oldest Paper API, the newest Paper API, and plain Spigot/Bukkit:
./gradlew :paper:checkPaperApiCompatibility
Anything that only exists on some servers is probed at runtime and falls back to plain Bukkit:
- region schedulers (Paper/Purpur/Folia) with a Bukkit scheduler fallback
- Folia entity scheduling so Hunger Mode health changes run on the thread that owns the player
Entity#isInLava()with a block probe fallback- the Adventure action bar (Paper family); servers without it simply show no debug action bar
Install
- Bukkit family: drop the jar into
plugins/ - Fabric: drop the jar into
mods/
Commands
The same set on Paper and Fabric. Requires op or antifly.admin on Paper, moderator-level permissions on Fabric.
/antifly enable|disable|status|help/antifly hungermode <on|off>- swap hard blocks for the hunger and health penalty/antifly voidaccess <on|off>- allow or block the void (default on)/antifly alerts <off|game|console|both>- where violation alerts are delivered/antifly reload- re-read the config from disk, no restart needed/antifly set- list every tunable key with its current value/antifly check [name] [on|off]- list, inspect or toggle individual checks/antifly debug <on|off>- show intervention messages with the player, reason and relevant controls
Also available: /antifly set <key> [value], /antifly exempt / unexempt, /antifly reset and /antifly disabledworlds. The full command reference is in CONFIGURATION.md.
Configuration
Use /antifly set <key> <value> to adjust available settings and /antifly check <name> <on|off> to control an individual check. Changes apply instantly and auto-save. Some checks overlap, so another enabled check may still correct the same movement; not every threshold is individually adjustable.
Defaults are chosen to stay forgiving of vanilla movement - sprinting, Depth Strider, Dolphin's Grace, Speed potions, wind charges, knockback and rockets are all expected and unpunished - so the common case really is "install it and leave it alone".
- Paper / Bukkit:
plugins/AntiFly/config.yml - Fabric:
config/antifly.json
CONFIGURATION.md documents every key and its default, the full command reference, the Elytra trajectory verifier in depth, Hunger Mode and void tuning, and which keys are platform-specific.
Permissions (Paper)
antifly.admin(default: op) ·antifly.alerts(default: op)
License
GNU General Public License v3.0 or later (GPL-3.0-or-later) - see LICENSE.txt.
下载 AntiFlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
下载 AntiFlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 改进了对载具和坐骑的检查,以减少在正常骑行、跳跃和冲刺时的误报。
- 改进了对床和黏液块上合法弹跳的处理。
- 添加了控制选项,无需重启即可启用或禁用各项检查。
- 改进了调试信息,使工作人员能够查看导致修正的原因以及需要调整的设置。
- 修复了配置和虚空保护相关的问题。
/antifly不带参数:现在在 Paper 和 Fabric 上会显示一个紧凑的概览(保护、饥饿模式、虚空访问、鞘翅检查、警报与提示);Fabric 此前没有任何反应。/antifly status已精简:仅显示状态、饥饿模式、虚空访问、禁用的世界以及警报模式——完整数值已移至/antifly set。/antifly set:现在是查看当前所有设置的主要入口。- **禁用功能现已真正生效:**关闭 AntiFly(或禁用某个世界)也会停止饥饿模式消耗、虚空伤害/返回、鞘翅检查、击退和传送重新校准,而不仅仅是移动检测;状态已重新基线化,因此重新启用时不会因之前的差距而被误判。之前是个疏忽。
- **修复了 Happy Ghast 的问题:**Ghast 家族的坐骑被视为有效的飞行支撑,因此乘客不再会被标记或拉拽。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧