如名称所示,这个插件就是记录下玩家的行为并记录日志文件的,方便抓熊孩子什么的
对一些事件,能详细的记录,比如玩家拿了箱子里面什么东西?在哪破坏了什么方块
输出按照csv格式输出,每天一个文件
和之前yq的行为日志有点类似吧
注意,用到生产环境请自行在配置文件关闭一些没有必要的记录,配置文件默认全部开启,否则一天的日志可达几GB甚至几十GB
配置文件
对一些事件,能详细的记录,比如玩家拿了箱子里面什么东西?在哪破坏了什么方块
输出按照csv格式输出,每天一个文件
和之前yq的行为日志有点类似吧
注意,用到生产环境请自行在配置文件关闭一些没有必要的记录,配置文件默认全部开启,否则一天的日志可达几GB甚至几十GB
配置文件
JSON:
events: {
preJoin: true, // 开始连接
join: true, // 加入游戏
left: true, // 离开游戏
chat: true, // 聊天消息
death: true, // 死亡
respawn: true, // 重生
command: true, // 命令执行
changeDim: true, // 维度切换
attack: true, // 攻击实体
takeItem: true, // 捡起物品
dropItem: true, // 丢弃物品
consumeTotem: true, // 消耗图腾
placeBlock: true, // 放置方块后
destroyBlock: true, // 破坏方块
openContainer: true, // 打开容器
closeContainer: true, // 关闭容器
expAdd: true, // 获得经验
bedEnter: true, // 上床睡觉
fishing: true, // 钓鱼
blockInteract: true, // 方块交互事件开关
blockChange: true, // 方块改变事件开关
blockExplode: true, // 方块爆炸事件开关
respawnAnchorExplode: true, // 重生锚爆炸
blockExploded: true, // 方块被爆炸破坏
fireSpread: true, // 火焰蔓延
containerChange: true, // 容器变化事件开关
farmLandDecay: true, // 耕地退化事件开关
useFrameBlock: true, // 物品展示框使用事件
liquidFlow: true, // 液体流动事件
setArmor: true, // 玩家改变盔甲栏事件开关
cmdBlockExecute: true, // 命令方块执行事件
redStoneUpdate: true, // 红石更新事件
hopperSearch: true, // 漏斗检测物品事件
hopperPushOut: true, // 漏斗输出物品事件
pistonPush: true, // 活塞推动事件
mobDie: true, // 生物死亡事件
mobHurt: true, // 生物受伤事件开关
projectileHit: true, // 弹射物击中方块事件
attackBlock: true, // 攻击方块事件
useItem: true, // 使用物品事件
useItemOn: true, // 对方块使用物品事件
useBucketPlace: true, // 使用桶放置事件
useBucketTake: true, // 使用桶装东西事件
mobSpawned: true, // 生物生成事件
projectileHitEntity: true, // 弹射物击中实体事件
entityExplode: true, // 实体爆炸事件
witherBossDestroy: true, // 凋灵破坏方块
ride: true, // 骑乘实体
stepPressurePlate: true, // 踩压力板
projectileCreated: true, // 弹射物创建
npcCmd: true, // NPC执行命令
projectileHitEntity: true, // 弹射物击中实体
changeArmorStand: true, // 操作盔甲架
entityTransformation: true, // 实体转变
consoleCmd: true, // 控制台命令执行
scoreChanged: true, // 计分板变化
ate: true, // 玩家食用物品
effectAdded: true, // 获得效果
effectRemoved: true, // 移除效果
effectUpdated: true, // 更新效果
changeSprinting: true, // 切换疾跑
sneak: true, // 切换潜行
jump: true, // 玩家跳跃
openContainerScreen: true, // 打开容器界面
inventoryChange: true, // 物品栏变化
signChange: true,//告示牌
playerInteractEntity: true // 玩家与实体交互事件
},
logPath: "logs/player_actions"//输出目录与名称
blockKeywords: []// 屏蔽关键词配置,屏蔽不想要的记录,支持正则表达式。
};