一款高级反作弊插件,用于检测并防止 freecam(自由视角)漏洞。它通过监控玩家移动模式、交互距离和数据包异常,来识别玩家是否将摄像机与身体分离。具备可配置的检测灵敏度、自动违规处理、绕过权限以及全面的日志记录功能。包含面向工作人员的警报系统和可自定义的惩罚措施。
检测玩家的摄像机位置(非玩家实体身体)是否低于可配置的 Y 轴层级(默认 Y = 16)。
__如果摄像机在该 Y 轴层级以下,而玩家实体仍位于其上方,则视为 freecam 行为。
仅在此情况下,通过发送虚假的空气方块或取消区块数据包,为该玩家隐藏该 Y 轴层级以下的所有方块。
如果玩家物理移动到该 Y 轴层级以下,立即恢复所有真实方块并正常加载区块。
重要规则:
不要为实际上处于地下的合法玩家隐藏方块。
不要修改世界或服务端方块。
效果必须仅限客户端。
配置:
trigger-y-level: 16
buffer-distance(容差值,防止跳跃/延迟导致误报)
支持按世界启用/禁用
权限绕过:antifreecam.bypass
检测方法(可组合使用多种方法):
玩家视线位置 vs 摄像机数据包移动
玩家未移动时摄像机位置发生突然的大幅变化
摄像机进入未加载或不可达的位置
性能:
轻量级数据包拦截(ProtocolLib 或原生 Paper 数据包 API)
缓存虚假区块数据
无明显 TPS 或延迟影响
命令:
/antifreecam reload
/antifreecam status
兼容性:
Minecraft 1.18+(支持负 Y 轴)
推荐使用 Paper
预期结果:
普通玩家看到的世界与原版完全一致。
freecam 用户在配置的 Y 轴层级以下只能看到虚空/空气。
一旦关闭 freecam 或玩家正常移动到地下,视野会立即恢复。
计划:
跟踪玩家身体位置与视线位置的移动模式
检测地表附近静止的玩家(潜在的 freecam 使用者)
仅对疑似 freecam 用户隐藏地下方块
添加按世界配置、缓冲距离和适当的命令
当玩家正常移动时立即恢复方块显示
实现已完成:
✓ Freecam 检测 - 跟踪地面以上静止且视线位置接近/低于触发 Y 值的玩家
✓ 客户端方块隐藏 - 仅向疑似 freecam 用户发送虚假 AIR 方块
✓ 即时恢复 - 玩家正常移动到地下时立即恢复方块显示
✓ 按世界配置 - 可在特定世界中启用/禁用
✓ 缓冲距离 - 3 个方块的容差防止因跳跃/延迟导致的误报
✓ 命令 - /antifreecam reload, /antifreecam status
✓ 权限绕过 - antifreecam.bypass 跳过所有检查
✓ 性能优化 - 可配置的检查间隔、半径限制,仅限客户端
检测逻辑:如果玩家在 Y=16 以上保持静止超过 3 秒,则隐藏地下方块。移动会立即恢复视野。适用于 Minecraft 1.18+。
An advanced anti-cheat plugin that detects and prevents freecam exploits. Monitors player movement patterns, interaction distances, and packet anomalies to identify when players disconnect their camera from their body. Features configurable detection sensitivity, automatic violation handling, bypass permissions, and comprehensive logging. Includes alert system for staff members and customizable punishment actions
Detect when a player’s camera position (not player body) goes below a configurable Y level (default Y = 16).
__If the camera goes below that Y level while the player entity remains above it, treat this as freecam behavior.
Only in this case, hide all blocks below the Y level for that player by sending fake air blocks or canceling chunk section packets.
If the player physically moves below the Y level, immediately restore all real blocks and load chunks normally.
Important rules:
Do NOT hide blocks for legitimate players who are actually underground.
Do NOT modify the world or server-side blocks.
Effects must be client-side only.
Configuration:
trigger-y-level: 16
buffer-distance (tolerance so jumping/lag doesn’t trigger false positives)
Per-world enable/disable
Permission bypass: antifreecam.bypass
Detection methods (combine multiple):
Player eye location vs. camera packet movement
Sudden large camera position changes without player movement
Camera entering unloaded or unreachable positions
Performance:
Lightweight packet interception (ProtocolLib or native Paper packet API)
Cache fake chunk sections
No noticeable TPS or ping impact
Commands:
/antifreecam reload
/antifreecam status
Compatibility:
Minecraft 1.18+ (supports negative Y)
Paper recommended
Expected result:
Normal players see the world exactly as vanilla.
Freecam users see nothing but void/air below the configured Y level.
As soon as freecam is disabled or the player moves underground normally, visibility is restored instantly
Plan:
Track player body position vs eye location patterns
Detect stationary players near surface (potential freecam users)
Hide underground blocks only for suspected freecam users
Add per-world config, buffer distance, and proper commands
Restore blocks immediately when players move legitimately
Implementation complete:
✓ Freecam Detection - Tracks stationary players above ground with eye position near/below trigger Y
✓ Client-side Block Hiding - Sends fake AIR blocks only to suspected freecam users
✓ Instant Restoration - Blocks restore when player moves legitimately underground
✓ Per-world Configuration - Enable/disable in specific worlds
✓ Buffer Distance - 3-block tolerance prevents false positives from jumping/lag
✓ Commands - /antifreecam reload, /antifreecam status
✓ Permission Bypass - antifreecam.bypass skips all checks
✓ Performance Optimized - Configurable check intervals, radius limits, client-side only
Detection logic: If player remains stationary above Y=16 for 3+ seconds, underground blocks are hidden. Movement instantly restores visibility. Works for Minecraft 1.18+.__
评论 0
登录后参与评分
还没有评论,来抢沙发吧