ChunkRestorer
由 Remoo 创建 · Discord: remoodabest
ChunkRestorer 为已加载的区块记录紧凑的、基于差异的检查点,并允许管理员通过游戏内图形界面将某个区块恢复到之前保存的状态。
功能
- 为已加载的区块创建定期检查点(默认为每 3 分钟)。
- 以方块差异而非完整区块快照的形式存储更改。
- 通过游戏内分页菜单浏览区块的保存历史记录。
- 恢复之前的检查点,同时不删除其他已保存的历史记录。
- 强制保存待处理的更改,并从主 GUI 查看插件状态。
- 跟踪支持的方块更改和容器物品栏更改。
- 保存箱子和大桶的物品栏,包括双层箱子的两半部分。
- 跟踪物品展示框的放置、交互和破坏行为以便恢复。
- 禁用物理效果的情况下分批应用恢复操作。
- 使用 SQLite 存储检查点历史。
- 当有更新的 Modrinth 版本可用时,可选地为管理员提供可点击的更新通知。
命令
| 命令 |
描述 |
/chunkrestorer |
打开主菜单。 |
/chunkrestorer menu |
打开主菜单。 |
/chunkrestorer restore here |
打开你当前所在区块的已保存检查点。 |
/chunkrestorer forcesave |
保存当前区块的待处理更改。不会创建空保存。 |
/chunkrestorer status |
显示缓存和存储状态。 |
这些命令需要 chunkrestorer.admin 权限。默认情况下该权限授予操作员(OP)。
要求
- Paper 26.2(Minecraft 1.26.2 服务器版本线)
- Java 25
将 ChunkRestorer.jar 放入服务器的 plugins 文件夹并重启服务器。
配置
storage:
auto-save-seconds: 180
revert:
blocks-per-tick: 128
storage.auto-save-seconds 控制定期检查点的间隔时间,且必须至少为 30 秒。revert.blocks-per-tick 控制每次恢复 tick 中应用的方块状态数量。版本更新检查使用的是此 Modrinth 项目,无需额外配置。版权和创作者署名是插件的一部分,不可配置。
数据与隐私
检查点数据存储在 plugins/ChunkRestorer/snapshots.db 中。更新检查会异步联系 Modrinth API,并发送插件版本和项目标识符。bStats 提供匿名的插件指标数据。插件在更新检查过程中不会有意收集玩家名称、服务器地址或其他可识别的服务器详细信息。
限制
ChunkRestorer 使用观察到的更改事件,仅存储其捕获的更改;它不是完整的区块备份。它无法恢复在安装之前、插件禁用期间或通过其未观察到的更改源进行的编辑。
Paper 的公共 API 不提供针对所有方块实体数据的通用快照接口。某些数据(如告示牌文本、刷怪笼设置、任意插件数据以及其他实体)不会被恢复。Minecraft 正常的世界和区块持久化仍由 Paper 管理。
ChunkRestorer
Created by Remoo · Discord: remoodabest
ChunkRestorer records compact, delta-based checkpoints for loaded chunks and lets admins restore a chunk to an earlier saved state using an in-game GUI.
Features
- Creates periodic checkpoints for loaded chunks (3 minutes by default).
- Stores changes as block deltas instead of full chunk snapshots.
- Browse a chunk's saved history from an in-game paginated menu.
- Restore an earlier checkpoint without deleting the other saved history.
- Force-save pending changes and view plugin status from the main GUI.
- Tracks supported block changes and container inventory changes.
- Saves chest and barrel inventories, including double-chest halves.
- Tracks item-frame placement, interaction, and breaks for restoration.
- Applies restores in batches with physics disabled.
- Stores checkpoint history in SQLite.
- Optional clickable update notices for admins when a newer Modrinth version is available.
Commands
| Command |
Description |
/chunkrestorer |
Open the main menu. |
/chunkrestorer menu |
Open the main menu. |
/chunkrestorer restore here |
Open saved checkpoints for the chunk you are standing in. |
/chunkrestorer forcesave |
Save pending changes for the current chunk. Empty saves are not created. |
/chunkrestorer status |
Show cache and storage status. |
Commands require the chunkrestorer.admin permission. It is granted to operators by default.
Requirements
- Paper 26.2 (Minecraft 1.26.2 server line)
- Java 25
Install ChunkRestorer.jar in the server's plugins folder and restart the server.
Configuration
storage:
auto-save-seconds: 180
revert:
blocks-per-tick: 128
storage.auto-save-seconds controls the periodic checkpoint interval and must be at least 30 seconds. revert.blocks-per-tick controls how many block states are applied in each restore tick. Update checking uses this Modrinth project and does not require configuration. Copyright and creator attribution are part of the plugin and are not configurable.
Data and privacy
Checkpoint data is stored in plugins/ChunkRestorer/snapshots.db. Update checks contact the Modrinth API asynchronously and send the plugin version and project identifier. bStats provides anonymous plugin metrics. The plugin does not intentionally collect player names, server addresses, or other identifying server details for update checks.
Limitations
ChunkRestorer uses observed change events and stores only changes it captures; it is not a full chunk backup. It cannot restore edits made before installation, while the plugin is disabled, or through change sources it does not observe.
Paper's public API does not provide a general snapshot interface for all block-entity data. Some data such as sign text, spawner settings, arbitrary plugin data, and other entities is not restored. Minecraft's normal world and chunk persistence remains managed by Paper.
评论 0
登录后参与评分
还没有评论,来抢沙发吧