配置文件
插件配置文件位于 plugins/EMC大数据/config.yml,包含 PAPI 变量映射、阈值权重、检测项、白名单、溯源、触发设置和 QQ 通知等配置。
完整配置
# PAPI 变量映射(根据服务器实际安装的插件修改)
papi:
recharge: "%playerpoints_points%"
online-time: "%statistic_time_played%"
grind-value: "%placeholder_grind%"
lottery-count: "%ny_lottery_count%"
lottery-total: "%ny_lottery_total%"
points: "%playerpoints_points%"
coins: "%vault_eco_balance%"
# 封禁阈值系统
threshold:
weights:
recharge: 1.0
online-time: 0.5
grind-value: 0.8
island-share: true
island-share-mode: "sum"
# 检测项配置
detection:
# 氪金物品检测(背包 + 末影箱)
krypton-items:
enabled: true
mode: "threshold"
fixed-limit: 64
items:
- material: "DIAMOND"
name-contains: "氪金"
- material: "GOLD_INGOT"
name-contains: "限定"
check-enderchest: true
# Lore关键词检测
lore-keywords:
enabled: true
mode: "fixed"
fixed-limit: 10
keywords:
- "稀有"
- "传说"
- "限定"
- "氪金"
# Ny变量检测(抽奖/累抽)
ny-variable:
enabled: true
mode: "threshold"
fixed-limit: 100
# 点券检测
currency-points:
enabled: true
mode: "fixed"
fixed-limit: 10000
# 金币检测
currency-coins:
enabled: true
mode: "fixed"
fixed-limit: 100000
# 特定物品权限检测
permission-items:
enabled: true
mode: "fixed"
fixed-limit: 1
permissions:
- "emc.item.vip"
- "emc.item.legendary"
- "emc.item.special"
# 物品价格列表(用于资产估值检测)
item-prices:
enabled: true
recharge-ratio: 2.0
check-enderchest: true
prices:
- material: "DIAMOND"
name-contains: "氪金钻石"
price: 100
- material: "GOLD_INGOT"
name-contains: "限定金锭"
price: 50
- material: "EMERALD"
name-contains: "稀有宝石"
price: 200
- material: "NETHER_STAR"
price: 500
- lore-contains: "传说品质"
price: 300
- lore-contains: "史诗品质"
price: 150
- name-contains: "VIP专属"
price: 1000
# 白名单配置
whitelist:
players: []
permissions:
- "emcdata.bypass"
items:
- "STONE"
- "DIRT"
# 物品溯源配置
tracing:
enabled: true
sources:
- "lottery"
- "command"
- "point-shop"
command-keywords:
- "give"
- "i"
- "item"
# QQ机器人通知配置(联动EasyBot)
qq-notify:
enabled: false
easybot-url: "http://127.0.0.1:23580"
warning-percentage: 50
ban-percentage: 100
# 检测触发设置
trigger:
on-join: true
interval-minutes: 30
actions:
- "tell %player% &c[EMC大数据] 检测到异常物品持有情况"
- "emcdata log %player%"
配置说明
PAPI 变量映射
papi 节点定义了各项数据的 PlaceholderAPI 变量。请根据服务器安装的 PAPI 扩展修改:
| 字段 | 默认值 | 说明 |
|---|---|---|
recharge | %playerpoints_points% | 充值累计金额 |
online-time | %statistic_time_played% | 在线时长 |
grind-value | %placeholder_grind% | 肝帝值 |
lottery-count | %ny_lottery_count% | 抽奖次数 |
lottery-total | %ny_lottery_total% | 累抽数据 |
points | %playerpoints_points% | 点券余额 |
coins | %vault_eco_balance% | 金币余额 |
物品匹配规则
氪金物品和物品价格列表中的匹配规则支持三种条件,可组合使用:
| 条件 | 说明 |
|---|---|
material | 物品 Material 名称(如 DIAMOND) |
name-contains | 物品显示名称包含指定文字 |
lore-contains | 物品 Lore 包含指定文字 |
触发动作
trigger.actions 中的命令在检测到违规时由控制台执行,%player% 会替换为玩家名。
QQ 通知阈值
| 参数 | 默认值 | 说明 |
|---|---|---|
warning-percentage | 50 | 违规百分比超过此值发送预警 |
ban-percentage | 100 | 违规百分比超过此值发送封禁通知并执行封禁 |