LedgerCore 是专为 Paper 和 Purpur 26.2 打造的容器审计层。工作人员通过 /ledger inspect 获得“法医透镜”(Forensics Lens);右键点击箱子、桶、发射器、投掷器、潜影盒或漏斗,即可打开一个简洁的调查界面。
时间线显示物品、数量、操作、玩家、相对时间戳和位置。最新条目位于右侧,而分页功能确保即使历史记录很长也能保持响应速度。左击一条记录标记为 A 时间点,右击另一条记录标记为 B 时间点。对比视图会重建保存的快照,并显示这两个时间点之间物品的确切差异。
筛选功能注重实用性而非装饰性:可通过玩家、材料或存入/取出操作来细化正在进行的调查。将筛选后的历史记录导出为适合 Discord 使用的 .txt 报告。拥有 ledger.rollback 权限的工作人员可以恢复单个物品的移动,而无需回滚整个区域或整个世界。
LedgerCore 默认使用 SQLite 存储其自身可配置的 30 天审计历史,并在 config.yml 中提供 MySQL 选项。容器标识使用持久化方块数据,每条记录都包含其所在的世界坐标以及容器所有者元数据。无需外部数据库或网络服务。
对于高价值失窃监控,工作人员可以通过 /ledger alert <item> 切换特定物品的通知。当安装了 WorldGuard 时,LedgerCore 会在通知订阅的工作人员之前,检查提取操作是否发生在适用的区域内。CoreProtect 是可选的;LedgerCore 不需要它来维护自身的精确容器历史记录。
主要命令
-
/ledger inspect — 获取法医透镜。
-
/ledger alert <item> — 切换受保护区域的提取警报。
-
/ledger filter <player|item|action> <value|clear> — 过滤当前调查。
-
/ledger export — 生成适合 Discord 的报告。
-
/ledger rollback <event-id> — 恢复一次记录的物品移动。
-
依赖项
无必需依赖项。WorldGuard 用于受保护区域警报(可选)。CoreProtect 为可选依赖项,非日志记录所必需。
LedgerCore is a purpose-built container audit layer for Paper and Purpur 26.2. Staff receive a Forensics Lens through /ledger inspect; right-click a chest, barrel, dispenser, dropper, shulker box, or hopper to open a clean investigation interface.
The timeline shows the item, amount, action, player, relative timestamp, and location. Its newest entries sit to the right, while paging keeps even long histories responsive. Left-click an entry to mark Time A and right-click another to mark Time B. The comparison view reconstructs the saved snapshots and displays the exact item difference between those points in time.
Filters are practical rather than cosmetic: refine an open investigation by player, material, or deposit/withdrawal action. Export the filtered history to a Discord-ready .txt report. Staff with ledger.rollback can restore an individual item movement without rolling back a whole region or world.
LedgerCore stores its own 30-day configurable audit history in SQLite by default, with MySQL available in config.yml. Container identities use persistent block data, and each record carries its world location plus container owner metadata. No external database or web service is required.
For high-value theft monitoring, staff can toggle item-specific notifications with /ledger alert <item>. When WorldGuard is installed, LedgerCore checks that a withdrawal occurs inside an applicable region before notifying subscribed staff. CoreProtect is optional; LedgerCore does not require it to keep its own exact container history.
Key commands
-
/ledger inspect — receive the Forensics Lens.
-
/ledger alert <item> — toggle protected-region withdrawal alerts.
-
/ledger filter <player|item|action> <value|clear> — filter the active investigation.
-
/ledger export — create a Discord-ready report.
-
/ledger rollback <event-id> — restore one recorded item movement.
-
Dependencies
None required. WorldGuard is optional for protected-region alerts. CoreProtect is optional and not required for logging.
评论 0
登录后参与评分
还没有评论,来抢沙发吧