exProtect 记录您服务器上的每一次变更:方块、容器、实体、物品、聊天和命令,并通过预览与回滚功能防止破坏行为。所有变更均通过防崩溃日志(journal)写入,即使服务器意外关闭也不会丢失任何数据。
功能
- 方块日志 – 记录破坏、放置、告示牌、桶、液体、火焰、爆炸、活塞及物理效果,并归属到玩家或来源如
#tnt
- 容器与物品 – 记录玩家从箱子、漏斗及其他容器中添加或移除的物品,以及掉落物拾取和背包点击操作
- 实体 – 记录击杀及实体变更(如盔甲架和物品展示框),并可完整恢复其数据
- 聊天、命令与会话 – 记录谁说了什么、执行了什么命令以及何时加入服务器,同时隐藏敏感命令(如
/login)
- 检查器 – 使用
/inspect 并点击任意方块或容器即可查看其历史记录
- 查询菜单 –
/lookup 在物品栏菜单中浏览记录的变更,并支持传送至对应位置;Bedrock 玩家可通过 Floodgate 获得原生表单体验
- 带预览的回滚 – 先以客户端预览查看结果,再应用更改;可排队多个回滚操作而不会阻塞服务器
- 恢复与撤销 –
/restore 重新应用已回滚的变更,/exprotect undo 撤销您上一次的回滚或恢复操作——即使重启后依然有效
- WorldEdit 和 FastAsyncWorldEdit 支持 – 编辑操作会被记录并支持回滚,包括方块实体数据(如箱内物品和告示牌文本)
- 破坏警报 – 当玩家破坏大量非己方方块或清空非己方容器时通知工作人员,可选配置 Discord Webhook
- 防崩溃日志 – 预写式日志确保每条记录在存入数据库前都不会丢失;服务器被杀进程也不会导致数据丢失或重复
- SQLite 或 MySQL/MariaDB – 开箱即用本地文件存储,也可在大中型网络中使用数据库服务器
- CoreProtect 导入 – 可迁移现有历史记录,支持断点续传
- 保留策略 – 旧记录会在可配置天数后自动清理
- 开发者 API – 查询历史、记录自定义变更并订阅批量事件
- 完全可定制 – 所有消息位于
language.yml,所有音效位于 config.yml
- Folia 支持 – 兼容 Paper 和 Folia
命令
| 命令 |
描述 |
权限 |
/inspect |
切换方块检查器模式 |
exprotect.inspect |
/lookup [filter] |
浏览记录的变更 |
exprotect.lookup |
/rollback <filter> |
回滚变更 |
exprotect.rollback |
/restore <filter> |
恢复已回滚的变更 |
exprotect.restore |
/exprotect undo |
撤销最近一次回滚或恢复操作 |
exprotect.rollback |
/exprotect status |
显示数据库与队列状态 |
exprotect.status |
/exprotect purge t:30d [filter] |
删除指定时间内匹配的记录 |
exprotect.purge |
/exprotect import coreprotect |
导入 CoreProtect 历史记录 |
exprotect.import |
/exprotect reload |
重载配置与语言文件 |
exprotect.reload |
从查询菜单进行传送需要 exprotect.teleport 权限。破坏警报发送至拥有 exprotect.alerts 权限的用户;exprotect.alerts.exempt 权限用户永远不会触发警报。
过滤器
| 参数 |
示例 |
含义 |
u: |
u:Steve,#tnt |
玩家或来源 |
t: |
t:1d12h |
时间跨度(回滚时必须指定) |
r: |
r:20, r:#world, r:#global |
半径或世界名称;若设置了 u: 则默认为全局 |
a: |
a:block, a:container, a:entity, a:chat |
动作类型 |
b: |
b:diamond_ore,villager |
方块、物品或实体 |
e: |
e:tnt,Steve |
排除的方块或玩家 |
示例:/rollback u:Steve t:2h r:50 撤销 Steve 在过去两小时内于 50 格范围内所做的所有更改。
要求
- Paper 或 Folia 26.3 及以上版本
- Java 25
- MySQL 或 MariaDB – 可选
- Floodgate – 可选,为 Bedrock 玩家提供原生表单
- WorldEdit 或 FastAsyncWorldEdit – 可选,用于记录编辑操作
安装
- 将
exProtect.jar 放入您的 plugins 文件夹并启动服务器。
- 修改
plugins/exProtect/config.yml(存储设置、记录内容、保留策略、警报、音效)和 language.yml(文本内容)。
- 运行
/exprotect reload – 完成。
exProtect logs every change on your server: blocks, containers, entities, items, chat and commands and rolls griefing back with a preview and undo. Changes are written through a crash-safe journal, so nothing is lost when the server dies.
Features
- Block logging – breaks, placements, signs, buckets, liquids, fire, explosions, pistons and physics, attributed to players or sources like
#tnt
- Containers and items – what players add or remove from chests, hoppers and other containers, plus drops, pickups and inventory clicks
- Entities – kills and entity changes such as armor stands and item frames, restorable with their full data
- Chat, commands and sessions – who said, ran and joined what, with sensitive commands like
/login hidden
- Inspector –
/inspect and click any block or container to see its history
- Lookup menu –
/lookup browses logged changes in an inventory menu, with teleport to the location; Bedrock players get native forms through Floodgate
- Rollback with preview – see the result as a client-side preview first, then apply it; queue several rollbacks without blocking the server
- Restore and undo –
/restore re-applies rolled back changes, /exprotect undo reverts your last rollback or restore – even after a restart
- WorldEdit and FastAsyncWorldEdit – edits are logged and roll back, including block entity data such as chest contents and sign text
- Grief alerts – staff are warned when a player breaks many foreign blocks or empties foreign containers, optionally with a Discord webhook
- Crash-safe logging – a write-ahead journal keeps every entry until it is in the database; a killed server loses nothing and duplicates nothing
- SQLite or MySQL/MariaDB – works out of the box with a local file, or use a database server for large networks
- CoreProtect import – bring your existing history over, resumable
- Retention – old entries are purged automatically after a configurable number of days
- Developer API – query history, log your own changes and subscribe to batches
- Fully customizable – every message lives in
language.yml, every sound in config.yml
- Folia support – runs on Paper and Folia
Commands
| Command |
Description |
Permission |
/inspect |
Toggle the block inspector |
exprotect.inspect |
/lookup [filter] |
Browse logged changes |
exprotect.lookup |
/rollback <filter> |
Roll back changes |
exprotect.rollback |
/restore <filter> |
Restore rolled back changes |
exprotect.restore |
/exprotect undo |
Revert your last rollback or restore |
exprotect.rollback |
/exprotect status |
Show database and queue status |
exprotect.status |
/exprotect purge t:30d [filter] |
Delete matching entries older than the given time |
exprotect.purge |
/exprotect import coreprotect |
Import CoreProtect history |
exprotect.import |
/exprotect reload |
Reload config and language |
exprotect.reload |
Teleporting from the lookup menu requires exprotect.teleport. Grief alerts go to exprotect.alerts; exprotect.alerts.exempt never triggers them.
Filters
| Parameter |
Example |
Meaning |
u: |
u:Steve,#tnt |
Players or sources |
t: |
t:1d12h |
Time span, required for rollbacks |
r: |
r:20, r:#world, r:#global |
Radius or world, global if u: is set |
a: |
a:block, a:container, a:entity, a:chat |
Action |
b: |
b:diamond_ore,villager |
Block, item or entity |
e: |
e:tnt,Steve |
Exclude blocks or players |
Example: /rollback u:Steve t:2h r:50 undoes everything Steve changed within 50 blocks in the last two hours.
Requirements
- Paper or Folia 26.3 or newer
- Java 25
- MySQL or MariaDB – optional
- Floodgate – optional, native forms for Bedrock players
- WorldEdit or FastAsyncWorldEdit – optional, logs edits
Installation
- Drop
exProtect.jar into your plugins folder and start the server.
- Adjust
plugins/exProtect/config.yml (storage, what to log, retention, alerts, sounds) and language.yml (texts).
- Run
/exprotect reload – done.
评论 0
登录后参与评分
还没有评论,来抢沙发吧