CervLogger
适用于 NeoForge 1.21.1 服务器的方块记录、查询、回滚与恢复功能。
CervLogger 在本地数据库中记录玩家活动,并允许工作人员检查方块历史记录、搜索日志并在几秒钟内回滚恶意破坏行为——且无需客户端安装。原版和模组客户端均可自由加入。
✨ 特性
- ? 全面的日志记录 — 方块放置/破坏、爆炸、火焰、容器交易、告示牌、水桶交互(门、拉杆、按钮等)、实体击杀、聊天、命令以及登录/登出会话
- ? 检查器模式 (
/cl i) — 点击任意方块即可即时查看是谁放置、破坏或更改了它,以及具体时间
- ⏪ 回滚与恢复 — 按玩家、时间、半径、动作和方块类型过滤以撤销恶意破坏行为(
/cl rollback u:Player t:2h r:20)
- ?️ 灵活的存储 — SQLite 开箱即用,零配置;MySQL 支持大型服务器(两者驱动均已打包)
- ?️ 仅服务端 — 客户端无需安装任何内容
? 命令
| 指令 |
描述 |
权限 |
/cl inspect (/cl i) |
切换检查器模式 |
所有人 |
/cl lookup <参数> |
搜索日志 |
op |
/cl rollback <参数> |
回滚更改 |
op |
/cl restore <参数> |
重新应用已回滚的更改 |
op |
/cl near [半径] |
查找你周围的记录 |
op |
/cl structures |
列出已加载的 Create/Sable 结构 |
op |
| /cl purge t:<时间> | 删除旧日志数据 | op |
参数: u:<玩家> t:<时间> r:<半径|#global> a:<操作>
b:<方块> e:<排除> w:<世界> p:<页码>
示例: /cl rollback u:Notch t:2h r:20 a:-block
⚙️ 配置
首次运行时,会在 config/cervlogger/config.properties 中创建以下配置:
按类别启用的日志开关、半径限制、页面大小、额外的交互方块 ID,以及当设置 storage-type=mysql 时的 MySQL 凭据。
? 兼容性
回滚在主服务器线程上运行——与 c2me、Lithium 和其他优化模组兼容。在 Create 机械装置或 Sable 子层级中移动的方块会绕过标准方块事件,且在移动过程中不会被记录。
CervLogger
Block logging, lookup, rollback and restore for NeoForge 1.21.1 servers.
CervLogger records player activity in a local database and lets staff inspect
block history, search the logs and roll back grief in seconds — with no
client-side installation required. Vanilla and modded clients can join freely.
✨ Features
- ? Comprehensive logging — block place/break, explosions, fire, container
transactions, signs, buckets, interactions (doors, levers, buttons…),
entity kills, chat, commands and login/logout sessions
- ? Inspector mode (
/cl i) — click any block to instantly see who
placed, broke or changed it and when
- ⏪ Rollback & restore — undo grief filtered by player, time, radius,
action and block types (
/cl rollback u:Player t:2h r:20)
- ?️ Flexible storage — SQLite works out of the box with zero setup;
MySQL supported for larger servers (both drivers bundled)
- ?️ Server-side only — nothing to install on clients
? Commands
| Command |
Description |
Permission |
/cl inspect (/cl i) |
Toggle the inspector |
everyone |
/cl lookup <params> |
Search the logs |
op |
/cl rollback <params> |
Roll back changes |
op |
/cl restore <params> |
Re-apply rolled back changes |
op |
/cl near [radius] |
Lookup around you |
op |
/cl structures |
List loaded Create/Sable structures |
op |
/cl purge t:<time> |
Delete old log data |
op |
Parameters: u:<player> t:<time> r:<radius|#global> a:<action>
b:<blocks> e:<exclude> w:<world> p:<page>
Example: /cl rollback u:Notch t:2h r:20 a:-block
⚙️ Configuration
Everything is created on first run at config/cervlogger/config.properties:
per-category logging toggles, radius limits, page size, extra interact block
IDs, and MySQL credentials if you set storage-type=mysql.
? Compatibility
Rollbacks run on the main server thread — safe alongside c2me, Lithium and
other optimization mods. Blocks moving inside Create contraptions or Sable
sub-levels bypass standard block events and are not logged while in motion.
评论 0
登录后参与评分
还没有评论,来抢沙发吧