Decoy
用于抓捕 X 光透视、杀戮光环、ESP(透视)和超距攻击作弊者的静默蜜罐反作弊插件。
工作原理
Decoy 会在玩家周围放置不可见的陷阱,这些陷阱在正常游戏过程中完全无法被察觉。虚假的矿脉、隐藏的生物实体以及诱饵箱子会按照循环周期散布在地底。合法玩家永远不会遇到它们。使用 X 光透视、杀戮光环、ESP 或超距攻击作弊器的作弊者会与这些陷阱互动并受到标记——他们不会收到任何警告或提示。
所有陷阱均使用原版精确生成算法。矿脉形状符合原版 Minecraft 的 blob 形态,且每种矿石的大小都准确无误(钻石以 4-8 个为一组生成,绿宝石单独生成等)。陷阱放置在实心墙壁后方,只有作弊者才能发现它们。
功能特性
- 矿石陷阱 — 使用原版 blob 生成机制创建虚假矿脉,并根据矿石类型设置正确的尺寸。支持深度感知放置(Y=0 以下使用深板岩变体,下界矿石在下界中生成)。方块破碎时不掉落任何物品,并立即恢复原状。
- 实体陷阱 — 不可见的盔甲架,用于捕捉杀戮光环和超距攻击。标记那些击中他们本不该看到或超出 4 格距离即可触及的实体的玩家。
- NPC 陷阱 — 带有浮动玩家名称标签的不可见站立实体。仅对 ESP/实体雷达类作弊可见。
- 箱子陷阱 — 埋在石头中的诱饵箱子,内含贵重物品。玩家无法打开其物品栏——一旦交互即被标记。
- 下界支持 — 在下界世界提供远古残骸、下界金矿石和下界石英陷阱,并使用正确的方块替换(下界岩、玄武岩、黑石)。
- 标记阈值 — 1 次标记将玩家列为可疑对象。3+ 次标记(可配置)将其确认为作弊者。严重程度显示在所有警报和命令中。
- 挖掘路径追踪 — 追踪每位玩家最近的方块破坏记录。计算玩家在朝向陷阱的直线上挖掘了多少方块(直线检测)。
- Discord Webhook — 丰富的嵌入格式警报,包含玩家头像缩略图、严重程度颜色编码、标记历史细分、位置以及直线数据。完全异步运行,不会拖慢服务器性能。
- 自动惩罚 — 可配置的命令层级,在特定标记数量时执行。设置自动踢出、临时封禁和永久封禁,支持
{player} 和 {count} 占位符。
- SQLite 存储 — 所有检测记录均保存玩家的 UUID、名称、类型、坐标、时间戳以及接近距离。重启后数据持久保留。
- 崩溃恢复 — 活动陷阱方块在数据库中跟踪,并在服务器重启时恢复到原始状态。
命令
| 命令 |
描述 |
/decoy status |
插件概览(活动陷阱数量、总检测次数) |
/decoy check <player> |
查看玩家的标记情况,包括类型细分和严重程度 |
/decoy recent [count] |
查看所有玩家的最近检测记录 |
/decoy clear <player> |
清除某玩家的所有标记 |
/decoy test |
在你周围强制部署陷阱(管理员测试用) |
/decoy near [range] |
列出附近的陷阱矿石 |
/decoy tp |
传送至最近的陷阱矿石 |
/decoy reload |
重新加载配置并重启陷阱循环 |
/decoy purge |
移除所有活动陷阱并停止循环 |
权限
| 权限节点 |
描述 |
默认值 |
decoy.admin |
访问所有 /decoy 命令 |
op |
decoy.notify |
接收游戏内检测警报 |
op |
decoy.bypass |
豁免所有陷阱 |
false |
配置
所有内容均可在 config.yml 中进行配置。关键设置如下:
- traps.interval — 陷阱围绕玩家刷新的频率(默认:90 秒)
- traps.ore.veins — 每个周期为每位玩家放置的矿脉数量(默认:25)
- traps.ore.radius — 围绕每位玩家的放置半径(默认:48 格)
- flags.confirm-threshold — 将玩家确认为作弊者所需的标记次数(默认:3)
- discord.webhook — 用于接收警报的 Discord Webhook URL
- punish.tiers — 触发惩罚命令的标记阈值列表
- worlds.blacklist — 不会放置陷阱的世界列表
Discord 设置
设置 discord.enabled: true 并粘贴你的 Webhook URL。警报将以异步方式发送,包含玩家头像、严重程度等级、标记细分以及坐标信息。
自动惩罚设置
设置 punish.enabled: true 并在配置文件中配置层级。适用于任何惩罚插件——只需使用你平时运行的控制台命令即可。
punish:
enabled: true
tiers:
- flags: 3
commands:
- "kick {player} Suspicious activity detected"
- flags: 5
commands:
- "tempban {player} 1d Automated ban - xray detected ({count} flags)"
- flags: 10
commands:
- "ban {player} Confirmed cheating - xray ({count} flags)"
Decoy
Silent honeypot anti-cheat for catching x-rayers, killaura, ESP, and reach cheaters.
How It Works
Decoy places invisible traps around players that are completely undetectable during normal gameplay. Fake ore veins, hidden entities, and bait chests are scattered underground on a repeating cycle. Legitimate players will never encounter them. Cheaters using x-ray, killaura, ESP, or reach hacks will interact with these traps and get flagged silently — they receive no warning or alert.
All traps use vanilla-accurate generation. Ore veins match real Minecraft blob shapes and per-ore sizes (diamonds spawn in veins of 4-8, emeralds as singles, etc). Traps are placed behind solid walls so only cheaters can find them.
Features
- Ore Traps — Fake ore veins using vanilla blob generation with correct sizes per ore type. Depth-aware placement (deepslate variants below Y=0, nether ores in the nether). Blocks give no drops and revert instantly on break.
- Entity Traps — Invisible armor stands that catch killaura and reach. Flags players who hit entities they shouldn't be able to see or reach beyond 4 blocks.
- NPC Traps — Invisible stands with floating player nametags. Only visible to ESP/entity radar cheats.
- Chest Traps — Bait chests buried in stone with valuables inside. Inventory never opens for the player — they get flagged on interaction.
- Nether Support — Ancient debris, nether gold, and quartz traps in nether worlds with correct block replacement (netherrack, basalt, blackstone).
- Flag Threshold — 1 flag marks a player as suspicious. 3+ flags (configurable) marks them as confirmed. Severity shows in all alerts and commands.
- Mining Path Tracking — Tracks recent block breaks per player. Calculates how many blocks a player mined in a straight line toward a trap (beeline detection).
- Discord Webhooks — Rich embed alerts with player head thumbnail, severity color coding, flag history breakdown, location, and beeline data. Fully async, won't lag your server.
- Auto Punish — Configurable command tiers that execute at specific flag counts. Set up automatic kicks, tempbans, and bans with
{player} and {count} placeholders.
- SQLite Storage — All detections logged with player UUID, name, type, coordinates, timestamp, and approach distance. Persists across restarts.
- Crash Recovery — Active trap blocks are tracked in the database and restored to their original state on server restart.
Commands
| Command |
Description |
/decoy status |
Plugin overview (active traps, total detections) |
/decoy check <player> |
View player flags with type breakdown and severity |
/decoy recent [count] |
Recent detections across all players |
/decoy clear <player> |
Wipe all flags for a player |
/decoy test |
Force deploy traps around you (admin testing) |
/decoy near [range] |
List nearby trap ores |
/decoy tp |
Teleport to nearest trap ore |
/decoy reload |
Reload configuration and restart trap cycle |
/decoy purge |
Remove all active traps and stop the cycle |
Permissions
| Permission |
Description |
Default |
decoy.admin |
Access to all /decoy commands |
op |
decoy.notify |
Receive in-game detection alerts |
op |
decoy.bypass |
Exempt from all traps |
false |
Configuration
Everything is configurable in config.yml. Key settings:
- traps.interval — How often traps refresh around players (default: 90 seconds)
- traps.ore.veins — Number of ore veins placed per player per cycle (default: 25)
- traps.ore.radius — Placement radius around each player (default: 48 blocks)
- flags.confirm-threshold — Flags needed to mark a player as confirmed (default: 3)
- discord.webhook — Your Discord webhook URL for alerts
- punish.tiers — List of flag thresholds with commands to execute
- worlds.blacklist — Worlds where traps won't be placed
Discord Setup
Set discord.enabled: true and paste your webhook URL. Alerts are sent asynchronously and include player avatars, severity levels, flag breakdown, and coordinates.
Auto Punish Setup
Set punish.enabled: true and configure tiers in config. Works with any punishment plugin — just use the console commands you'd normally run.
punish:
enabled: true
tiers:
- flags: 3
commands:
- "kick {player} Suspicious activity detected"
- flags: 5
commands:
- "tempban {player} 1d Automated ban - xray detected ({count} flags)"
- flags: 10
commands:
- "ban {player} Confirmed cheating - xray ({count} flags)"
评论 0
登录后参与评分
还没有评论,来抢沙发吧