PlayerDataRollback
概述
意外丢失玩家数据令人沮丧,而寻找可靠的解决方案往往困难重重。因此我开发了 PlayerDataRollback——一款旨在自动备份和恢复玩家数据的插件,让你高枕无忧。
该插件会在服务器每次启动时自动创建备份。你也可以通过简单的命令手动备份、恢复和管理备份。
备份文件保存在 plugins/PlayerDataRollback/Backups 目录下。
功能
- 在服务器启动时自动备份玩家数据。
- 手动创建、回滚和删除玩家数据备份。
- 按特定时间段(如天、月或年)筛选备份。
- 支持恢复单个玩家的数据或一次性恢复所有玩家的数据。
- 支持多语言(英语、简体中文、繁体中文和德语)。
- 分页显示备份列表。
- 在回滚所有数据时会踢出所有玩家以避免冲突。
命令
备份管理
/pld backup create <backup name> - 创建所有玩家数据的备份。
/pld list (xd/xm/xy) - 列出按时间筛选的备份(天前/月前/年前)。
/pld page <number> - 浏览备份列表(需在使用 /pld list 后使用)。
回滚
/pld rollback <playername> <backup name> - 将某位玩家的数据回滚至指定备份。
/pld rollbackall <backup name> - 从指定时间段或备份中回滚所有玩家数据(这将踢出所有在线玩家)。
删除备份
/pld backup remove <backup name> - 删除特定备份。
/pld backup removeall <xd/xm/xy> - 删除指定时间段(天前/月前/年前)的所有备份。
多语言支持
该插件支持多种语言:
英语 (en_US)
简体中文 (zh_CN)
繁体中文 (zh_TW)
德语 (de_DE)
翻译会根据服务器的区域设置自动应用。
安装
从 SpigotMC 下载 PlayerDataRollback 的最新版本。
将 .jar 文件放入 plugins 文件夹。
重启服务器以生成配置文件和必要文件。
备份将在每次服务器启动时自动创建,或者你可以使用命令进行手动控制。
使用示例
创建备份:/pld backup create myBackup
回滚玩家数据:/pld rollback Steve myBackup
回滚 7 天前的所有玩家数据:/pld rollbackall 7d
列出最近 3 个月的备份:/pld list 3m
支持
如果遇到任何问题或有新功能建议,欢迎通过 SpigotMC 联系,或在插件的 GitHub 仓库中提交 Issue。
bStats
PlayerDataRollback
Overview
Losing player data unexpectedly is incredibly frustrating, and finding a reliable solution can be difficult. That's why I created PlayerDataRollback—a plugin designed to automatically back up and restore player data, giving you peace of mind.
The plugin automatically creates a backup every time the server starts. You can also manually back up, restore, and manage backups with simple commands.
Backups are saved in plugins/PlayerDataRollback/Backups
Features
Automatically backs up player data on server startup.
Manually create, rollback, and remove player data backups.
Filter backups by specific time periods such as days, months, or years.
Restore individual player data or all players at once.
Supports multi-language (English, Chinese Simplified, Chinese Traditional, and German).
Paginated display of backup lists.
Kicks all players when rolling back all data to avoid conflicts.
Commands
Backup Management
/pld backup create <backup name> - Create a backup of all player data.
/pld list (xd/xm/xy) - List backups filtered by time (days/months/years ago).
/pld page <number> - Navigate through the list of backups (used after /pld list).
Rollback
/pld rollback <playername> <backup name> - Rollback a player's data to a specific backup.
/pld rollbackall <backup name> - Rollback all player data from a specified time period or backup (this will kick all online players).
Backup Removal
/pld backup remove <backup name> - Delete a specific backup.
/pld backup removeall <xd/xm/xy> - Delete all backups from a specified time period (days/months/years ago).
Multi-language Support
The plugin supports multiple languages:
English (en_US)
Chinese (Simplified) (zh_CN)
Chinese (Traditional) (zh_TW)
German (de_DE)
Translations are applied automatically based on the server's locale.
Installation
Download the latest version of PlayerDataRollback from SpigotMC.
Place the .jar file into the plugins folder.
Restart the server to generate the configuration and necessary files.
Backups will be automatically created on each server startup, or use the commands for manual control.
Example Usage
Create a backup: /pld backup create myBackup
Rollback a player's data: /pld rollback Steve myBackup
Rollback all player data from 7 days ago: /pld rollbackall 7d
List backups from the last 3 months: /pld list 3m
Support
If you encounter any issues or have suggestions for new features, feel free to reach out via SpigotMC or open a issue on plugin's github repository.
bStats
评论 0
登录后参与评分
还没有评论,来抢沙发吧