CoreProtect-additions

CoreProtect-additions 是 CoreProtect 的一个插件,为当前 CoreProtect 尚不支持的额外功能添加了日志记录。
已添加日志记录的功能包括:
- 使用命名牌重命名生物
- 对生物使用金蒲公英
- 开始袭击事件(Raid)
- 染色实体
- 放置和破坏船与矿车
- 骑乘和离开实体
- 点燃 TNT
- 使苦力怕或恶魂的火球爆炸
- 点燃硫磺立方体
- 拴绳绑定和解绑生物
- 在床上或重生锚设置出生点
- 引爆床或重生锚
- 打开实体容器 GUI
- 投掷旋风电荷
- 旋风电荷触发方块
- 海绵吸水
- 僵尸破坏门
- 向花盆中添加或移除物品
- 药水效果编织蜘蛛网
- 蠹虫感染方块
- 冰行者附魔
- 拾取和放置可桶装生物(鱼、美西螈等)
- 村民和猪被闪电转化
- 实体拾取和丢弃物品(悦灵、僵尸等)
- 玩家直接向悦灵给予或拿走物品
- 实验性 实体容器日志记录(适用于箱子矿车、漏斗矿车)
日志详情
用于指定操作的格式与 /co lookup 命令中使用的格式相同。对于 a:block 操作,如果未指定 + 或 -,则按预期同时使用两种版本。
由于 CoreProtect API 的限制,这些事件有时会以不太直观的方式作为 a:block 操作进行记录,并通过物品来进行区分。
a:+block i:<dye>: 对生物进行染色(如绵羊、狗项圈等),坐标将指向应用染料后的实体。a:+block i:name_tag: 重命名生物(不存储新名称或旧名称),坐标指向该动物。a:-block i:ominous_bottle: 触发袭击事件,坐标指向袭击起点。a:-block i:creeper_spawn_egg: 导致苦力怕爆炸,坐标指向苦力怕的位置。a:-block i:fire_charge: 导致恶魂火球爆炸,坐标指向火球的位置。
a:block i:<vehicle>: 放置或破坏任何类型的矿车或船(车辆类型将具体指明,例如oak_chest_boat)a:block i:<spawn_egg>: 进入或退出矿车或船(如果在配置中启用)a:block i:<spawn_egg>: 骑乘或离开生物,刷怪蛋代表所骑乘的生物。a:block i:lead: 放置或破坏拴绳。这包括牵着拴绳的生物移动。坐标指向被拴住的实体。在栅栏柱上放置或移除拴绳时也会调用此记录,坐标指向栅栏柱。a:block i:<mob_bucket>: 放置或拾取桶装生物
a:click 动作用于其他所有情况:
a:click i:tnt:引燃 TNT。a:click i:creeper_spawn_egg:使用打火石引燃苦力怕,记录爆炸时苦力怕的坐标(不记录苦力怕被引燃的时间)。a:click i:sulfur_cube_spawn_egg:使用打火石引燃硫磺方块、将其撞入火中或拴绳拖入火中。在方块爆炸的位置进行记录。a:click i:<bed>:在床上设置重生点或引爆床(指定床的颜色,例如magenta_bed)。a:click i:respawn_anchor:在重生锚上设置重生点或引爆它。a:click i:<spawn_egg>:点击带有箱子的生物(如羊驼、驴等)。a:click i:<vehicle>:点击带有物品的载具(如漏斗矿车、带箱船的船等),或骑乘/下马(船、矿车)。a:click i:golden_dadelion:使用金盏花对生物进行操作,锁定或解锁生长状态。在生物所在位置记录。
风弹被记录为 a:item,在其他投射物的查找中显示为“用户 投掷了 wind_charge”。
由风弹触发的按钮、门、拉杆等,其日志记录方式与玩家或微风实体发射它们时的点击操作相同。
海绵仅被记录为用户“#sponge”吸走(破坏)了所吸收的方块(水、海带或海草)。
僵尸破坏门的行为被记录为用户“#zombie”(包括尸壳、僵尸村民或其他类型)破坏了门方块。
织网行为被记录为用户“#weaving”放置蜘蛛网。
盆栽植物被记录为玩家打破花盆并放置新的盆栽植物,使其可回滚。
闪电转换被记录为用户“#lightning”击杀生物,使其可回滚。
向悦灵给予物品被记录为玩家丢弃物品且“#allay”拾取该物品。记录悦灵所在位置。
配置
提供配置文件,条目基本自解释,且配置文件中包含注释。
注意:配置文件中的用户注释将在下次插件重载时被删除。
实体容器日志记录
此插件还提供了一个实验性功能,允许 CoreProtect 最终记录与实体容器(如驴、骡子、带箱船、漏斗矿车、带箱矿车等)的交易。 这是一个 hack 方案,因为官方 API 并不支持此功能,且在配置中默认禁用。在我的有限测试中它能正常工作,但可能存在我未考虑到的其他问题。 请谨慎使用;如果发生错误,该功能应会在下次重启前自动禁用。
已知问题:警告
由于 CoreProtect 中存在一个问题,回滚预览(#preview)可能会意外失败。
为避免此问题,您需要排除所有可能导致问题的物品。您可以在 GitHub 上找到可能导致问题的物品完整列表。
注意:没有 #preview 选项的常规回滚操作同样可以正常工作。
注意事项与限制:
当玩家破坏拴系着生物的栅栏时,#physics 会在栅栏柱所在位置记录为 a:-block i:lead。需要通过手动查找来确认是谁破坏了栅栏。
由床或重生锚爆炸触发的 TNT 目前会被 #block 记录为 a:click i:tnt,理想情况下应能追溯至触发爆炸的玩家。
CoreProtect-additions

CoreProtect-additions is an addon for CoreProtect that adds logging for extra features that are currently unsupported by CoreProtect.
Logging has been added for
- Renaming mobs with a name tag
- Using a golden dandelion on a mob
- Starting raids
- Dyeing entities
- Placing and breaking boats and Minecarts
- Mounting and dismounting entities
- Igniting TNT
- Cusing Creeper or Ghast fireballs to explode
- Igniting sulfur cubes
- Leashing and unleashing mobs
- Setting spawn on a Bed or Respawn Anchor
- Exploding a Bed or Respawn Anchor
- Opening entity container GUIs.
- Wind charge throwing
- Wind charge triggering blocks
- Sponges absorbing water
- Zombies breaking doors
- Adding and removing items to flower pots
- Weaving potion effect placing cobwebs
- Silverfish infesting blocks
- Frost walker
- Picking up and placing bucketable mobs (fish, axolotl etc.)
- Villagers and pigs getting converted by lightning
- Entities picking up and dropping items (Allays, zombies etc)
- Players giving and taking items to allays directly
- EXPERIMENTAL ENTITY CONTAINER LOGGING (for Chest Minecarts, Hopper Minecarts)
Logging details
The formats used to specify the action are the ones used in the /co lookup command. For the a:block action, if no + or - is specified, both versions are used as expected.
Due to limitations of the CoreProtect API, these events are logged in sometimes unintuitive ways as a:block actions, using items to differentiate them.
a:+block i:<dye>: dyeing a mob (sheep, dog collar etc), with the, coordinates of the entity dye will refer to the applied dye item.a:+block i:name_tag: renaming a mob (neither new or old mob name are stored), coordinates of the animal.a:-block i:ominous_bottle: triggering a raid, coordinates of the raid origin.a:-block i:creeper_spawn_egg: causing a creeper to explode, coordinates of the creeper.a:-block i:fire_charge: causing a Ghast fireball to explode, coordinates of the fireball.
a:block i:<vehicle>: placing or breaking a Minecart or Boat of any kind (vehicle will refer to the particular vehicle e.g.oak_chest_boat)a:block i:<spawn_egg>: entering or exiting a Minecart of Boat (if enabled in config)a:block i:<spawn_egg>: mounting or dismounting a Mob, spawn egg reprsents the mob ridden.a:block i:lead: placing or breaking a Leash. This includes riding away with a leashed mob. At the coordinates of the entity that was leashed. Also called when placing or removing a leash from a fence post, at the coordinates of the fence post.a:block i:<mob_bucket>: placing or picking up a bucketed mob
The a:click action is used for everything else:
a:click i:tnt: igniting TNTa:click i:creeper_spawn_egg: igniying a creeper with a flint and steel, coordinates of the creeper at time of explosion (NOT logged when the creeper was ignited).a:click i:sulfur_cube_spawn_egg: igniying a sulfur cube with a flint and steel, hitting one into fire, or leashing on into fire. Logged at the location the cube explodes.a:click i:<bed>: setting spawn on a Bed or exploding it (with a specified bed colour e.g.magenta_bed)a:click i:respawn_anchor: setting spawn on a Respawn Anchor or exploding it.a:click i:<spawn_egg>: clicking on a chested mob (Llama, donkey, etc..).a:click i:<vehicle>: clicking on an inventory vehicle (Hopper cart, chest boat, etc..), or mounting/dismounting it (boat, minecart).a:click i:golden_dadelion: using a golden dandelion on a mob, locking or unlocking growth. At the location of the mob.
Wind Charges are logged as a:item which actually shows up in lookups as "user thew wind_charge" as for other projectiles.
Buttons, doors, levers and more triggered by the wind charge are logged as if they were clicked by the player or breeze that fired them.
Sponges are simply logged as user "#sponge" breaking the blocks that were sucked up (water, kelp or seagress).
Zombies breaking doors are logged as user "#zombie" (husk, zomvie_villager or whatever) breaking the door block.
Weaving is logged as user "#weaving" placing cobwebs.
Potted plants are logged as the player breaking the pot and placing a new potted_plant, making it rollbackable.
Lightning conversion is logged as user #lightning killing the mob, making it rollbackable.
Giving items to allays is logged as the player dropping the item and #allay picking it up. Location of the Allay.
Config
Config is available, entries should be fairly self-explanatory, and comments are present in the config.
Note: user comments in the config will be deleted next plugin reload.
Entity Container Logging
This plugin also has an experimental option to finally allow CoreProtect to log transactions with entity inventories (such as donkeys, mules, chest boats, hopper minecarts, chest minecarts etc...). This is a bit of a hack, as there is no official API for this, and is disabled by default in the config. It worked in my limited testing but might have other issues i didn't account for. Use with caution, the feature should disable itself until the next restart in case an error occurs.
KNOWN ISSUE: WARNING
Due to an issue in CoreProtect, rollback previews (#preview) can fail unexpectedly.
To avoid this, you will have to exclude all items that may be causing the issue. You can find a complete list of items that may be causing the issue on GitHub.
NOTE: Regular rollbacks without the #preview option will work just fine.
Notes and limitations:
Breaking a fence to which a mob is leashed will be logged as a:-block i:lead by #physics at the location of the fence post. A manual lookup is needed to verify who broke the fence.
TNT triggered by a Bed or Respawn Anchor explosion currently gets logged as a:click i:tnt by #block ideally it should be traced back to the player who clicked it.
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CoreProtect-additions
下载 CoreProtect-additions
下载 CoreProtect-additions
- 移除遗留的调试代码
- 改进硫磺立方体的日志记录,并支持新的边缘情况
- 硫磺立方体爆炸现在在爆炸时记录,而不是在点燃时记录,与苦力怕的处理方式相同
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧