Essential Core
我们的多线程处理机制让您在使用该模组时获得最佳性能。
概述
• 记录玩家操作(方块破坏/放置、交互、容器等)
• 打开背包、末影箱以及离线玩家的末影箱。
• 定期对玩家背包和区块进行备份
• 允许对区块和背包进行回滚/恢复
• 提供带有分页功能的交互式检查器,用于查阅历史记录
• 使用后台处理(多线程)以避免服务器卡顿
核心功能
• 针对各类别(方块、容器、交互、聊天、命令等)快速且高效的数据日志记录。
• 通过命令执行回滚和恢复(玩家/区块)。
• 多线程支持
• 按类别 → 玩家 → 日期将日志写入文件:essential-core /logs/<category>/<player>/<dd-MM-yyyy>.log。
可通过 config.toml 进行配置(启用/禁用日志、命令过滤器和线程数量)。
• 带有分页和可点击导航按钮的检查器。
• 撤销以还原上一次的回滚操作。
它记录了什么?
• 新增:inventory — 玩家背包日志
• 新增:enderchest — 玩家末影箱日志
• 已实现的日志类别(在 FileLogger.java 文件中)包括 — 每个日志分别保存到 essential-core/events/<category>/<player>/<date>.log:
• block_break — 玩家破坏方块
• block_place — 玩家放置方块
• interactions — 与方块/实体的交互(右键点击)
• containers — 打开容器并汇总内容
• chat — 聊天消息
• commands — 玩家执行的命令(可过滤)
• sessions — 玩家登录/登出
• item_pickups — 从地面拾取物品
• item_drops — 掉落的物品(事件:EntityJoinLevel 检测 ItemEntity)
• item_transactions — (FileLogger 中存在相关方法;见下方说明)
• dimensions — 维度变更
• game_mode — 游戏模式变更
• entity_death — 实体死亡
• entity_kills — 被玩家击杀的实体
• console_commands — 在控制台执行的命令
• server_events — 服务器启动/停止
• 观察:某些日志在适用情况下会以“SERVER”或“CONSOLE”作为玩家身份记录(例如,entity_death 会记录在 entity_death/SERVER/<date>.log 中)。
命令
别名:essentialcore, ecore 和 core
• /ecore status — 显示模组状态:队列、线程、最新备份、处理时间、内存使用情况。
• /ecore inspect — 切换检查器模式:toggleInspect。
* 子命令(在 `/nc inspect` 模式下):
* `/ecore inspect block <x> <y> <z> [page]` — 检查方块的歷史記錄(操作 + 交互)。
* `/ecore inspect player <target> [page]` — 玩家的操作历史。
• /ecore player <player> — 显示玩家的最近备份。
• /ecore chunk — 显示当前区块的信息(上次备份、最后进入的玩家等)。
• /ecore backup all | player | chunks — 强制备份。
• /ecore rollback chunk <radius> <backup_number> — 将玩家周围区域的区块恢复到指定编号的备份状态。
• /ecore rollback player <player> <backup_number> — 恢复玩家的背包(玩家必须在线)。
• /ecore inventory — 打开在线或离线玩家的背包。
• /ecore enderchest — 打开在线或离线玩家的末影箱。
• /ecore reload — 重新加载 config.toml 配置。
• /ecore pause — 暂停模组。
未来更新
• MySQL 支持
• Curios 饰品栏支持
灵感源自 coreprotect!
需要帮助?访问 Discord。
请使用 Discord 报告错误和问题。
如果模组反响良好,我们将提供源代码,谢谢。
Essential Core
Our multi-threaded processing allows you to get the best performance when using the mod.
Overview
• Records player actions (block breaking/placement, interactions, containers, etc.)
• Open Inventories, Ender Chests, and offline player ender chests.
• Performs periodic backups of player inventories and chunks
• Allows for rollback/restore of chunks and inventories
• Has an interactive inspector (with pagination) for consulting history
• Uses background processing (multithreaded) to avoid lagging the server
Core Features
• Fast and efficient data logging for various categories (blocks, containers, interactions, chat, commands, etc.).
• Rollbacks and restores (player/chunk) via commands.
• Multi-threaded
• Logs in files by category → player → date: essential-core /logs/<category>/<player>/<dd-MM-yyyy>.log.
Configurable via config.toml (enable/disable logs, command filter, and thread count).
• Inspector with pagination and clickable buttons for navigation.
• Undo to revert the last rollback.
What does it log?
• NEW: inventory — Player inventory log
• NEW: enderchest — Player enderchest log
• The implemented log categories (FileLogger.java file) include — each log goes to essential-core/events/<category>/<player>/<date>.log:
• block_break — block breaking by player
• block_place — block placement
• interactions — interactions with blocks/entities (right-click)
• containers — container opening with summarized content
• chat — chat messages
• commands — commands executed by players (filterable)
• sessions — player login/logout
• item_pickups — picking up items from the ground
• item_drops — dropped items (Event: EntityJoinLevel detects ItemEntity)
• item_transactions — (method exists in FileLogger; see note below)
• dimensions — dimension change
• game_mode — gamemode change
• entity_death — entity death
• entity_kills — entity killed by player
• console_commands — commands executed on the console
• server_events — server start/stop
• Observation: some logs are recorded with the player as "SERVER" or "CONSOLE" when applicable (e.g., entity_death records in entity_death/SERVER/<date>.log).
Commands
Alias: essentialcore, ecore and core
• /ecore status — Shows mod status: queues, threads, latest backups, processing time, memory usage.
• /ecore inspect — Toggles inspector mode: toggleInspect.
* Subcommands (while in /nc inspect mode):
* /ecore inspect block <x> <y> <z> [page] — Inspects the block's history (actions + interactions).
* /ecore inspect player <target> [page] — Player's action history.
• /ecore player <player> — Displays the player's last backups.
• /ecore chunk — Shows information about the current chunk (last backup, last players to enter, etc.).
• /ecore backup all | player | chunks — Forces a backup.
• /ecore rollback chunk <radius> <backup_number> — Restores the chunks in an area around the player to the state of the indicated backup number.
• /ecore rollback player <player> <backup_number> — Restores the player's inventory (player must be online).
• /ecore inventory — Open the inventory of an online or offline player.
• /ecore enderchest — Open the enderchest from an online or offline player.
• /ecore reload — Reloads the config.toml configuration.
• /ecore pause — Pause Mod.
Future updates
• MySQL support
• Curios inventory support
Mod inspired by coreprotect!
Need help? Access Discord.
Use Discord to report bugs and problems.
The source code will be provided if the mod is well-received, thank you.
评论 0
登录后参与评分
还没有评论,来抢沙发吧