Sulfurlogger
一款 Paper 插件,用于将 Sulfur Cube 爆炸所破坏的方块记录到 CoreProtect,并将责任归属于相关玩家。
通常情况下,这些爆炸没有责任人:CoreProtect 不会记录任何内容,也无法在恶意破坏后进行回滚。Sulfurlogger 会记住是谁向方块填充了 TNT 并引爆它,并将破坏行为与该玩家关联起来。
功能
- 将破坏的方块记录到 CoreProtect,以便像往常一样进行检查和回滚
- 检测向方块填充 TNT 的玩家(将 TNT 喂给方块,或从装有 TNT 的水桶中释放)
- 检测引爆方块的玩家:
- 打火石或火焰弹;
- 带有火焰附魔的武器;
- 燃烧的投射物和火球;
- 已引燃的 TNT 或其他 Sulfur Cube 的爆炸(连锁反应)
- 数据直接存储在实体上(PersistentDataContainer),因此可以保留服务器重启后的数据
- 引爆者需承担 5 分钟的责任;此后,责任将转嫁给填充 TNT 的玩家
工作原理
当方块爆炸时,每个被破坏的方块都会以 #sulfur-<player> 的名称记录到 CoreProtect。如果无法确定责任人(例如,方块是由发射器释放的),则使用 #sulfur-unknown。
命令
该插件本身不包含任何命令。请使用标准的 CoreProtect 命令:
/co lookup user:#sulfur-PlayerName
/co rollback user:#sulfur-PlayerName time:1h radius:30
/co inspect
依赖
- 支持 Sulfur Cube 的 Paper
- 启用了 API 的 CoreProtect(API 版本 9 或更高)。在 CoreProtect 的
config.yml 中设置 api-enabled: true
限制
- 仅记录方块破坏;不记录对玩家和生物的伤害
- 由发射器释放的方块归因于
unknown
- 不保留文件日志;所有数据均存储在 CoreProtect 中(如果您选择了正确的版本)
安装
- 将
Sulfurlogger.jar 放入您的 plugins 文件夹
- 确保已安装 CoreProtect 并启用了其 API
- 重启服务器
Sulfurlogger
A Paper plugin that logs blocks destroyed by Sulfur Cube explosions to CoreProtect and attributes them to the player responsible.
Normally these explosions have no author: CoreProtect records nothing, and there is nothing to roll back after griefing. Sulfurlogger remembers who loaded the cube with TNT and who ignited it, and ties the destruction to that player.
Features
- Logs destroyed blocks to CoreProtect, so they can be inspected and rolled back as usual
- Detects the player who gave the cube TNT (fed it to the cube or released it from a TNT-loaded bucket)
- Detects the player who ignited the cube:
- flint and steel or fire charge;
- weapons with the Fire Aspect enchantment;
- burning projectiles and fireballs;
- explosion of primed TNT or another Sulfur Cube (chain reactions)
- Data is stored directly on the entity (PersistentDataContainer), so it survives server restarts
- The igniter is held responsible for 5 minutes; after that, responsibility falls back to the player who loaded the TNT
How it works
When a cube explodes, every destroyed block is logged to CoreProtect under the name #sulfur-<player>. If the responsible player cannot be determined (for example, the cube was released by a dispenser), #sulfur-unknown is used.
Commands
The plugin has no commands of its own. Use the standard CoreProtect commands:
/co lookup user:#sulfur-PlayerName
/co rollback user:#sulfur-PlayerName time:1h radius:30
/co inspect
Requirements
- Paper with Sulfur Cube support
- CoreProtect with the API enabled (API version 9 or higher). In CoreProtect's
config.yml, set api-enabled: true
Limitations
- Only block destruction is logged; damage to players and mobs is not recorded
- A cube released by a dispenser is attributed to
unknown
- No file logs are kept; all data lives in CoreProtect (if you chose right version of it)
Installation
- Put
Sulfurlogger.jar into your plugins folder
- Make sure CoreProtect is installed and its API is enabled
- Restart the server
评论 0
登录后参与评分
还没有评论,来抢沙发吧