InvRewind
适用于 Paper、Purpur 和 Folia 的高度可配置的物品栏备份与恢复插件。
面向希望备份玩家物品栏并在玩家丢失物品时进行恢复的服务器管理员。
为什么使用此插件?
保护玩家的进度
- 避免因漏洞、错误或意外而丢失物品
- 在服务器崩溃或回滚后恢复物品栏
- 从复制漏洞或物品栏清空中恢复
灵活且强大
- 多种数据库选项(YAML、SQLite、MySQL)
- 支持在不同格式之间导出和导入备份
- 数据库故障时自动降级
- 兼容 Paper、Purpur 和 Folia 服务器
易于使用
- 直观的图形界面,用于浏览和恢复备份
- 选择性恢复——精确选择要恢复的内容
- 异步操作——无服务器卡顿
- 支持控制台和游戏内命令
积极维护
- 频繁更新新功能
- 发现即修复 Bug
- 社区驱动的改进
- GitHub 开源
功能
核心功能
- 自动备份 - 在玩家死亡、切换世界、加入、离开以及按计划间隔时捕获玩家物品栏
- 强制备份 - 通过命令按需创建手动备份
- 基于 GUI 的恢复 - 直观的界面用于浏览和恢复备份
- 选择性恢复 - 恢复特定物品:物品栏、盔甲、副手、末影箱、经验值或位置
- 数据库迁移 - 在 YAML、SQLite 和 MySQL 格式之间导出和导入备份
技术特性
- 兼容 Folia - 完全支持 Folia 的区域线程机制
- 多数据库支持 - 可在 YAML、SQLite 或 MySQL 之间选择
- 数据库降级 - 如果数据库连接失败,自动降级为 YAML
- 异步操作 - 所有数据库操作均在异步运行以防止卡顿
- 备份限制 - 按类型自动清理旧备份
- 分页处理 - 高效处理大量玩家和备份列表
- 重复检测 - 导入时跳过重复备份
备份类型
- 死亡 - 玩家死亡时自动备份
- 世界切换 - 切换世界时备份(包括自定义维度)
- 加入 - 玩家加入服务器时备份
- 离开 - 玩家离开服务器时备份
- 计划任务 - 定期自动备份
- 强制 - 由管理员创建的手动备份
命令
| 命令 |
描述 |
权限 |
/invrewind 或 /ir |
打开玩家选择 GUI |
invrewind.admin |
/invrewind reload |
重新加载配置 |
invrewind.admin |
/invrewindforce <player|all> |
为玩家(或所有玩家)强制备份 |
invrewind.admin |
/invrewind export [yaml|sqlite|mysql] |
将备份导出为指定格式 |
invrewind.export |
/invrewind import <type> <filename> |
从文件导入备份 |
invrewind.import |
配置
数据库选项
database:
type: yaml # yaml, sqlite, or mysql
- YAML - 基于文件,易于备份,适合小型服务器
- SQLite - 基于文件的数据库,中等性能适合中型服务器
- MySQL - 外部数据库,最适合大型/多服务器设置
自动备份设置
auto-backup:
on-death: true
on-world-change: true
on-join: true
on-quit: true
scheduled:
enabled: false
interval: 30 # 分钟
require-movement: true
min-items: 1
备份限制
auto-backup:
limits:
enabled: true
max-per-type:
death: 50
world-change: 30
join: 20
quit: 20
scheduled: 40
force: 100
功能开关
features:
save-inventory: true
save-armor: true
save-offhand: true
save-enderchest: true
save-health: true
save-hunger: true
save-xp: true
save-location: true
迁移设置
migration:
# 成功导入后删除源文件或文件夹
delete-source-after-import: false
GUI 音效
gui:
sounds-enabled: true # 启用/禁用所有 GUI 音效
数据库迁移
导出备份
将当前数据库导出为任意格式:
/invrewind export # 导出到当前数据库类型
/invrewind export yaml # 导出到 YAML 文件夹结构
/invrewind export sqlite # 导出到 SQLite .db 文件
/invrewind export mysql # 导出到 MySQL .sql 转储文件
导出位置:
- YAML:
plugins/InvRewind/exports/yaml/export_TIMESTAMP/
- SQLite:
plugins/InvRewind/exports/sqlite/export_TIMESTAMP.db
- MySQL:
plugins/InvRewind/exports/mysql/export_TIMESTAMP.sql
导入备份
从任意格式导入备份:
/invrewind import yaml <foldername> # 从 YAML 文件夹导入
/invrewind import sqlite <filename> # 从 SQLite .db 文件导入
/invrewind import mysql <filename> # 从 MySQL .sql 文件导入
导入位置:
- YAML: 将文件夹放入
plugins/InvRewind/imports/yaml/
- SQLite: 将 .db 文件放入
plugins/InvRewind/imports/sqlite/
- MySQL: 将 .sql 文件放入
plugins/InvRewind/imports/mysql/
特性:
- 异步处理以防止服务器卡顿
- 每 100 个备份记录一次进度日志
- 自动检测和跳过重复项
- 提供可用导入文件的 Tab 补全
- 支持从控制台和游戏内执行
权限
| 权限 |
描述 |
默认值 |
invrewind.admin |
对所有功能的完整管理员访问权限 |
OP |
invrewind.use |
恢复自己物品栏的访问权限 |
OP |
invrewind.restore.others |
恢复其他玩家物品栏的权限 |
OP |
invrewind.forcebackup |
创建强制备份的权限 |
OP |
invrewind.export |
将备份导出到不同格式的权限 |
OP |
invrewind.import |
从不同格式导入备份的权限 |
OP |
支持与开发
本插件正在积极维护中,会频繁更新、添加新功能,并在发现 Bug 时及时修复。更多功能已规划在未来的版本中发布。
许可证
本项目遵循 GNU General Public License v3.0 授权。
InvRewind
Highly configurable inventory backup and restore plugin for Paper, Purpur, and Folia.
For server owners and admins who want to backup player inventories and restore them when players lose items.
Why Use This Plugin?
Protect Your Players' Progress
- Never lose items due to bugs, glitches, or accidents
- Restore inventories after server crashes or rollbacks
- Recover from duplication exploits or inventory wipes
Flexible & Powerful
- Multiple database options (YAML, SQLite, MySQL)
- Export and import backups between formats
- Automatic fallback if database fails
- Works on Paper, Purpur, and Folia servers
Easy to Use
- Intuitive GUI for browsing and restoring backups
- Selective restore - choose exactly what to restore
- Async operations - no server lag
- Console and in-game command support
Actively Maintained
- Frequent updates with new features
- Bug fixes as they're discovered
- Community-driven improvements
- Open source on GitHub
Features
Core Functionality
- Automatic Backups - Capture player inventories on death, world change, join, quit, and scheduled intervals
- Force Backups - Create manual backups on demand via command
- GUI-Based Restoration - Intuitive interface for browsing and restoring backups
- Selective Restore - Restore specific items: inventory, armor, offhand, ender chest, XP, or location
- Database Migration - Export and import backups between YAML, SQLite, and MySQL formats
Technical Features
- Folia Compatible - Full support for Folia's region-based threading
- Multi-Database Support - Choose between YAML, SQLite, or MySQL
- Database Fallback - Automatic fallback to YAML if database connection fails
- Async Operations - All database operations run asynchronously to prevent lag
- Backup Limits - Automatic cleanup of old backups per type
- Pagination - Handle large player counts and backup lists efficiently
- Duplicate Detection - Skip duplicate backups on import
Backup Types
- Death - Automatic backup when player dies
- World Change - Backup when switching worlds (including custom dimensions)
- Join - Backup when player joins the server
- Quit - Backup when player leaves the server
- Scheduled - Automatic backups at regular intervals
- Force - Manual backups created by admins
Commands
| Command |
Description |
Permission |
/invrewind or /ir |
Open player selection GUI |
invrewind.admin |
/invrewind reload |
Reload configuration |
invrewind.admin |
/invrewindforce <player|all> |
Force backup for player(s) |
invrewind.admin |
/invrewind export [yaml|sqlite|mysql] |
Export backups to specified format |
invrewind.export |
/invrewind import <type> <filename> |
Import backups from file |
invrewind.import |
Configuration
Database Options
database:
type: yaml # yaml, sqlite, or mysql
- YAML - File-based, easy to backup, good for small servers
- SQLite - File-based database, better performance for medium servers
- MySQL - External database, best for large/multi-server setups
Auto-Backup Settings
auto-backup:
on-death: true
on-world-change: true
on-join: true
on-quit: true
scheduled:
enabled: false
interval: 30 # minutes
require-movement: true
min-items: 1
Backup Limits
auto-backup:
limits:
enabled: true
max-per-type:
death: 50
world-change: 30
join: 20
quit: 20
scheduled: 40
force: 100
Features
features:
save-inventory: true
save-armor: true
save-offhand: true
save-enderchest: true
save-health: true
save-hunger: true
save-xp: true
save-location: true
Migration Settings
migration:
# Delete source file/folder after successful import
delete-source-after-import: false
GUI Sounds
gui:
sounds-enabled: true # Enable/disable all GUI sounds
Database Migration
Export Backups
Export your current database to any format:
/invrewind export # Export to current database type
/invrewind export yaml # Export to YAML folder structure
/invrewind export sqlite # Export to SQLite .db file
/invrewind export mysql # Export to MySQL .sql dump
Export locations:
- YAML:
plugins/InvRewind/exports/yaml/export_TIMESTAMP/
- SQLite:
plugins/InvRewind/exports/sqlite/export_TIMESTAMP.db
- MySQL:
plugins/InvRewind/exports/mysql/export_TIMESTAMP.sql
Import Backups
Import backups from any format:
/invrewind import yaml <foldername> # Import from YAML folder
/invrewind import sqlite <filename> # Import from SQLite .db file
/invrewind import mysql <filename> # Import from MySQL .sql file
Import locations:
- YAML: Place folders in
plugins/InvRewind/imports/yaml/
- SQLite: Place .db files in
plugins/InvRewind/imports/sqlite/
- MySQL: Place .sql files in
plugins/InvRewind/imports/mysql/
Features:
- Async processing to prevent server lag
- Progress logging every 100 backups
- Automatic duplicate detection and skipping
- Tab completion for available import files
- Works from console and in-game
Permissions
| Permission |
Description |
Default |
invrewind.admin |
Full admin access to all features |
OP |
invrewind.use |
Access to restore own inventory |
OP |
invrewind.restore.others |
Restore other players' inventories |
OP |
invrewind.forcebackup |
Create force backups |
OP |
invrewind.export |
Export backups to different formats |
OP |
invrewind.import |
Import backups from different formats |
OP |
Support & Development
This plugin is actively maintained with frequent updates, new features, and bug fixes as they're discovered. More features are planned for future releases.
License
This project is licensed under the GNU General Public License v3.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧