跳到主要内容

检测系统

EMC 大数据提供 6 大检测维度,每个检测项可独立启用/禁用,并支持两种判断模式。

判断模式

每个检测项都支持两种判断模式:

模式说明
threshold使用阈值系统计算的分数作为上限,适合与玩家消费能力挂钩的检测
fixed使用固定数量作为上限,适合硬性限制的检测

检测维度

1. 氪金物品检测

扫描玩家背包和末影箱中的氪金物品数量。

  • 匹配规则支持 material(物品 ID)、name-contains(名称包含)、lore-contains(Lore 包含)
  • 可选择是否同时检测末影箱
  • 默认模式:threshold
detection:
krypton-items:
enabled: true
mode: "threshold"
fixed-limit: 64
items:
- material: "DIAMOND"
name-contains: "氪金"
- material: "GOLD_INGOT"
name-contains: "限定"
check-enderchest: true

2. Lore 关键词检测

扫描玩家背包中含有特定 Lore 关键词的物品总数。

  • 配置关键词列表,匹配任一关键词即计数
  • 默认模式:fixed
detection:
lore-keywords:
enabled: true
mode: "fixed"
fixed-limit: 10
keywords:
- "稀有"
- "传说"
- "限定"
- "氪金"

3. Ny 变量检测

通过 PAPI 变量读取抽奖/累抽数据,判断是否超标。

  • 默认模式:threshold
detection:
ny-variable:
enabled: true
mode: "threshold"
fixed-limit: 100

4. 点券检测

通过 PAPI 变量读取 PlayerPoints 点券余额。

  • 默认模式:fixed
detection:
currency-points:
enabled: true
mode: "fixed"
fixed-limit: 10000

5. 金币检测

通过 PAPI 变量读取 Vault 金币余额。

  • 默认模式:fixed
detection:
currency-coins:
enabled: true
mode: "fixed"
fixed-limit: 100000

6. 权限物品检测

检测玩家是否拥有特定权限节点(通常与特殊物品绑定)。

  • 默认模式:fixed
detection:
permission-items:
enabled: true
mode: "fixed"
fixed-limit: 1
permissions:
- "emc.item.vip"
- "emc.item.legendary"
- "emc.item.special"

资产估值检测

除了上述 6 大检测项外,插件还提供资产估值检测功能:

  • 根据物品价格列表计算玩家持有物品的总价值
  • 与玩家充值金额对比,超过设定倍率视为异常
  • 同时扫描背包和末影箱
item-prices:
enabled: true
recharge-ratio: 2.0
check-enderchest: true
prices:
- material: "DIAMOND"
name-contains: "氪金钻石"
price: 100
- lore-contains: "传说品质"
price: 300

检测结果

每个检测项返回一个 DetectionResult,包含:

字段说明
detectorName检测项名称
violated是否违规
currentValue当前值
limitValue限制值
details详细说明

违规百分比 = currentValue / limitValue * 100,用于触发预警或封禁通知。