⚠️ 兼容性说明: 本插件专为 Minecraft 1.21.5 Purpur 构建。我在 Purpur 1.21.5 和 Spigot 1.21.1 上进行了测试。它应该可以在 1.21.1-1.21.5 的 Spigot/Purpur/Paper/Bukkit 上运行。
如果您想报告错误或建议开发新插件,请加入我的 Discord 服务器。
? Inspector
记录。分析。保护。
Inspector 是一款高性能、异步运行的方块日志记录器,专为现代生存服务器设计。它以法医般的精度追踪方块变化、容器交易和爆炸事件。与较旧的日志记录器不同,Inspector 使用智能启发式算法来确定究竟是 谁 通过红石触发了爆炸,或是谁打翻了水桶,同时保持数据库整洁且服务器无延迟。
✨ 主要功能
- ? 交互式检查工具: 日常使用无需复杂命令。
- 只需输入
/inspect 即可获取工具(木棍)并切换检查模式。
- 右键点击任意方块即可查看其完整历史记录,支持 可点击的分页 (
[< 上一页] [下一页 >]) 和智能时间分隔符。
- ? 高级爆炸取证: Inspector 能精确确定 谁 导致了爆炸。
- 追踪由打火石引燃的 TNT、火焰箭或投射物。
- 红石侦探: 追溯信号源头至按钮、拉杆或目标方块,找出机制背后的罪魁祸首。
- 支持在其他维度进行 末地床炸弹 和 重生锚 相关事件的追踪。
- ? 容器交易日志: 追踪每一次物品移动。
- 记录存入或取出箱子、桶、熔炉等的物品。
- 快照系统: 如果容器被破坏,插件会在破坏发生前的瞬间记录其完整的库存内容。
- ? 智能流动追踪: 检测是谁打翻了水或岩浆。
- 如果液体流了 5 个方块远并摧毁了农作物或红石装置,插件会将破坏责任正确归因于放置水源桶的玩家。
- ?️ 细粒度访问控制: 非常适合员工管理。
- 临时访问: 管理员可以
/inspector grant 给予玩家特定时间的访问权限(例如 10 分钟)。当时间到期时,权限会自动撤销。
- 持久性: 即使您断开连接,服务器也会记住您的检查模式状态。
- ? 高性能架构:
- 所有数据库操作(SQLite)均在 异步 线程中运行,以确保零主线程延迟。
- 模块系统: 如果在性能较弱的硬件上运行,您可以在配置文件中禁用资源密集型功能(如流动追踪)。
- ? “狙击手”检测: 解决“神秘箭矢”问题。如果玩家使用箭或三叉戟激活按钮以触发陷阱,插件将识别出射击者。
⚙️ 配置
所有内容均可通过 config.yml 或游戏内命令进行自定义:
- 保留天数: 日志应保留多久?(默认:14 天)。
- 红石深度: 插件应搜索多远范围内连接到 TNT 的按钮/拉杆?
- 模块: 独立切换方块变化、爆炸、流动、交互或实体以节省资源。
- 每页日志数: 自定义聊天中显示的条目数量。
? Inspector - 命令与权限
主要命令: /inspector (管理员) 和 /inspect (工具)
| 命令 |
描述 |
权限 |
默认值 |
| --- 玩家 / 工具 --- |
|
|
|
/inspect |
切换检查模式并给予工具。 |
inspector.tool |
❌ OP |
/i, /lb, /logblock |
/inspect 的别名。 |
inspector.tool |
❌ OP |
/inspector language <pl/en> |
更改个人界面语言。 |
inspector.use |
✅ 所有人 |
/inspector |
显示服务器状态及活动模块。 |
inspector.use |
✅ 所有人 |
/inspector help |
显示可用命令。 |
inspector.use |
✅ 所有人 |
| --- 管理员 --- |
|
|
|
/inspector grant <p> <m> |
给予玩家 X 分钟的临时访问权限。 |
inspector.admin |
❌ OP |
/inspector revoke [p] |
撤销临时访问权限(针对单个或所有玩家)。 |
inspector.admin |
❌ OP |
/inspector listtemp |
显示拥有活跃临时访问权限的玩家。 |
inspector.admin |
❌ OP |
/inspector toggle <mod> |
切换模块(流动、爆炸等)。 |
inspector.modules |
❌ OP |
/inspector reload |
重新加载配置和消息。 |
inspector.admin |
❌ OP |
- 通配符权限:
inspector.*(授予完整的命令访问权限)。
模块(可切换):
您可以通过配置文件或命令启用/禁用这些系统以优化性能。
block-change: 放置和破坏方块。
explosions: TNT、苦力怕、末地床、重生锚、火。
flow: 水/岩浆扩散和破坏(最耗资源)。
interactions: 打开箱子、交易(存入/取出)。
entities: 物品展示框、盔甲架、桶、践踏。
? 安装
- 下载
.jar 文件。
- 将其放置在服务器的
/plugins/ 文件夹中(Spigot/Paper/Purpur 1.21.x)。
- 重启服务器。
⚠️ Compatibility Note: This plugin is built for Minecraft 1.21.5 Purpur. I tested it on Purpur 1.21.5 and Spigot 1.21.1. It should work on 1.21.1-1.21.5 Spigot/Purpur/Paper/Bukkit.
If you want to report a bug or suggest a new plugin, join my Discord server.
? Inspector
Log. Analyze. Protect.
Inspector is a high-performance, asynchronous block logger designed for modern survival servers. It tracks block changes, container transactions, and explosions with forensic precision. Unlike older loggers, Inspector uses smart heuristics to determine exactly who triggered an explosion via Redstone or who spilled that water bucket, all while keeping your database clean and your server lag-free.
✨ Key Features
- ? Interactive Inspection Tool: No complex commands needed for daily use.
- Simply type
/inspect to get the tool (Stick) and toggle inspection mode.
- Right-click any block to see its full history with Clickable Pagination (
[< Previous] [Next >]) and smart time separators.
- ? Advanced Explosion Forensics: Inspector determines exactly who caused an explosion.
- Tracks TNT primed by flint & steel, flaming arrows, or projectiles.
- Redstone Detective: Traces signals back to buttons, levers, or target blocks to find the culprit behind the mechanism.
- Supports Bed Bombing and Respawn Anchors in other dimensions.
- ? Container Transaction Logging: Tracks every item movement.
- Records items Deposited into or Withdrawn from chests, barrels, furnaces, etc.
- Snapshot System: If a container is broken, the plugin logs its full inventory contents the moment before destruction.
- ? Smart Flow Tracking: Detects who spilled water or lava.
- If a liquid stream flows 5 blocks away and destroys crops or Redstone, the plugin correctly attributes the destruction to the player who placed the source bucket.
- ?️ Granular Access Control: Perfect for staff management.
- Temporary Access: Admins can
/inspector grant access to a player for a specific time (e.g., 10 minutes). Access automatically revokes when time expires.
- Persistence: The server remembers your inspection mode state even if you disconnect.
- ? High-Performance Architecture:
- All database operations (SQLite) run Asynchronously to ensure zero main-thread lag.
- Module System: You can disable resource-heavy features (like Flow tracking) in the config if running on weaker hardware.
- ? "Sniper" Detection: Solves the "mystery arrow" problem. If a player activates a button using an Arrow or Trident to trigger a trap, the plugin identifies the shooter.
⚙️ Configuration
Everything is customizable via config.yml or in-game commands:
- Retention Days: How long should logs be kept? (Default: 14 days).
- Redstone Depth: How far should the plugin search for buttons/levers connected to TNT?
- Modules: Toggle Block Changes, Explosions, Flow, Interactions, or Entities independently to save resources.
- Logs per Page: Customize how many entries appear in chat.
? Inspector - Commands & Permissions
Main commands: /inspector (Admin) and /inspect (Tool)
| Command |
Description |
Permission |
Default |
| --- PLAYER / TOOL --- |
|
|
|
/inspect |
Toggles inspection mode & gives tool. |
inspector.tool |
❌ OP |
/i, /lb, /logblock |
Aliases for /inspect. |
inspector.tool |
❌ OP |
/inspector language <pl/en> |
Change your personal interface language. |
inspector.use |
✅ Everyone |
/inspector |
Displays server status & active modules. |
inspector.use |
✅ Everyone |
/inspector help |
Displays available commands. |
inspector.use |
✅ Everyone |
| --- ADMIN --- |
|
|
|
/inspector grant <p> <m> |
Give temp access to a player for X min. |
inspector.admin |
❌ OP |
/inspector revoke [p] |
Revoke temp access (from one or all). |
inspector.admin |
❌ OP |
/inspector listtemp |
Show players with active temp access. |
inspector.admin |
❌ OP |
/inspector toggle <mod> |
Toggle modules (flow, explosions, etc.). |
inspector.modules |
❌ OP |
/inspector reload |
Reloads configuration & messages. |
inspector.admin |
❌ OP |
- Wildcard Permission:
inspector.* (Grants full command access).
Modules (Toggleable):
You can enable/disable these systems via config or command to optimize performance.
block-change: Placing and breaking blocks.
explosions: TNT, Creepers, Beds, Anchors, Fire.
flow: Water/Lava spread and destruction (Heaviest).
interactions: Chest opening, transactions (deposit/withdraw).
entities: Item Frames, Armor Stands, Buckets, Trampling.
? Installation
- Download the
.jar file.
- Place it in the
/plugins/ folder of your server (Spigot/Paper/Purpur 1.21.x).
- Restart the server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧