Cobblemon Full Restore 添加了一套简单且安全的 /cfr 命令套件,用于备份和恢复玩家的 Cobblemon PC(宝可梦中心存储)与 Party(队伍)数据,包括可选的 计划自动备份系统 以及轮转快照功能。因此,即使发生突然崩溃或断电,你的宝可梦也不会丢失,哪怕之前没有人手动进行过备份。
非常适合因崩溃或连接问题而频繁丢失宝可梦的单人玩家和小规模服务器社区。
命令
备份与恢复
/cfr backup — 所有人 — 备份你自己的宝可梦数据
/cfr backup <player> — OP 2+ — 备份其他玩家的数据
/cfr restore — 所有人 — 恢复你自己的数据 (需要确认)
/cfr restore <player> — OP 2+ — 恢复其他玩家的数据
/cfr restore cancel — 所有人 — 取消待处理的恢复操作
/cfr restore offline <uuid> — OP 2+ — 恢复当前未在线的玩家数据
/cfr status — 所有人 — 检查是否存在备份文件
/cfr status <player> — OP 2+ — 检查其他玩家的备份状态
轮转快照
/cfr snapshots — 所有人 — 列出你自己的轮转自动备份快照
/cfr snapshots <player> — OP 2+ — 列出其他玩家的快照
/cfr restore snapshot <i> — 所有人 — 从特定快照进行恢复 (需要确认)
/cfr restore <player> snapshot <i> — OP 2+ — 从特定快照恢复其他玩家的数据
自动备份
-
/cfr autobackup status — 所有人 — 显示自动备份计划状态
-
/cfr autobackup on / off — OP 2+ — 启用/禁用计划的自动备份
-
/cfr autobackup now — OP 2+ — 立即执行一次自动备份
-
/cfr autobackup interval <minutes> — OP 2+ — 更改自动备份间隔时间
-
/cfr help — 所有人 — 显示完整的命令参考手册
工作原理
手动备份: /cfr backup 会为你的当前 PC 和 Party 数据创建一个快照文件 (.dat.old)。/cfr restore 会用该备份替换当前的 .dat 文件。
自动备份: 按照可配置的时间间隔运行(默认为每 30 分钟),模组会自动为所有在线玩家创建快照,保存到轮转的 .dat.auto.<timestamp> 文件中——这与手动备份的 .dat.old 槽位完全分开,因此计划内的备份绝不会覆盖你的手动备份或彼此之间。默认情况下,每位玩家最多保留 5 个快照,这样你就有多个还原点可以回溯,而不仅仅是一个。断开连接时也会免费进行一次快照(加入时也可选)。
安全第一:
- 恢复操作始终需要 两步确认 ——在 30 秒内运行两次命令(或使用
/cfr restore cancel 撤销)
- 在恢复之前,你当前的数据会自动保存为
.dat.crash.<timestamp>,以确保没有任何数据永久丢失
- 如果
.dat 文件看起来被截断/损坏(小于 64 字节),备份和快照将拒绝捕获它,因此崩溃永远不会被误认为是“良好”的备份
- 所有备份文件都会根据可配置的保留数量自动清理,因此你的存档文件夹永远不会被旧文件填满
配置
设置位于 config/cobblemonfullrestore.json 中(会自动创建),也可以通过游戏内的 /cfr autobackup 命令实时更改。
联系方式
Discord: zmoonmaru
Cobblemon Full Restore adds a simple and safe /cfr command suite for backing up and restoring a player's Cobblemon PC and Party data, including an optional scheduled auto-backup system with rotating snapshots, so a sudden crash or power outage doesn't cost you your Pokémon even if nobody had the chance to back up manually first.
Perfect for singleplayer players and small server communities who frequently lose Pokémon due to crashes or connection issues.
Commands
Backup & Restore
/cfr backup — Everyone — Backup your own Pokémon data
/cfr backup <player> — OP 2+ — Backup another player's data
/cfr restore — Everyone — Restore your own data (confirmation required)
/cfr restore <player> — OP 2+ — Restore another player's data
/cfr restore cancel — Everyone — Cancel a pending restore
/cfr restore offline <uuid> — OP 2+ — Restore a player who isn't currently online
/cfr status — Everyone — Check if backup files exist
/cfr status <player> — OP 2+ — Check another player's backup status
Rotating Snapshots
/cfr snapshots — Everyone — List your rotating auto-backup snapshots
/cfr snapshots <player> — OP 2+ — List another player's snapshots
/cfr restore snapshot <i> — Everyone — Restore from a specific snapshot (confirmation required)
/cfr restore <player> snapshot <i> — OP 2+ — Restore another player from a specific snapshot
Auto-Backup
-
/cfr autobackup status — Everyone — Show auto-backup schedule status
-
/cfr autobackup on / off — OP 2+ — Enable/disable scheduled auto-backups
-
/cfr autobackup now — OP 2+ — Run an auto-backup pass immediately
-
/cfr autobackup interval <minutes> — OP 2+ — Change the auto-backup interval
-
/cfr help — Everyone — Show the full command reference
How It Works
Manual backups: /cfr backup creates a snapshot file (.dat.old) of your current PC and Party. /cfr restore replaces the active .dat files with that backup.
Auto-backups: on a configurable timer (default every 30 minutes), the mod automatically snapshots every online player's data to rotating .dat.auto.<timestamp> files — completely separate from the manual .dat.old slot, so scheduled backups never overwrite your manual backup or each other. By default, up to 5 snapshots are kept per player so you have several restore points to fall back through, not just one. A free snapshot is also taken on disconnect (and optionally on join).
Safety first:
- Restoring always requires two-step confirmation — run the command twice within 30 seconds (or
/cfr restore cancel to back out)
- Before restoring, your current data is automatically saved as
.dat.crash.<timestamp> so nothing is permanently lost
- Backups and snapshots refuse to capture a
.dat file that looks truncated/corrupted (under 64 bytes), so a crash never gets mistaken for a "good" backup
- All backup files are automatically pruned to a configurable retention count, so your save folder never fills up with old files
Configuration
Settings live in config/cobblemonfullrestore.json (created automatically) and can also be changed live in-game with /cfr autobackup commands.
Contact
Discord: zmoonmaru
评论 0
登录后参与评分
还没有评论,来抢沙发吧