SyIDChange
一款适用于 1.21.x 版本的 Minecraft 插件,支持 Purpur 和 Paper,旨在帮助更改过游戏名称的玩家迁移其数据。
作者
Shiyuan
功能
使用 /sychange <旧用户名> <新用户名> 命令将库存数据从旧用户名迁移到新用户名。
支持的数据迁移项:
- ✅ 库存数据(必需)
- ✅ AuthMe 密码
- ✅ Residence 领地声明
- ✅ Vault 余额
- ✅ PlayerTitle 头衔
安装
- 将插件放入服务器的
plugins 文件夹中
- 重启服务器或使用插件管理器加载它
- 插件将自动创建配置文件
用法
命令
/sychange <旧用户名> <新用户名>
权限
syidchange.use - 允许使用数据迁移命令(默认:OP)
syidchange.admin - 允许使用所有管理功能(默认:OP)
示例
/sychange OldName NewName
这将把所有数据从 OldName 迁移到 NewName。
依赖项
必需:
可选(软依赖):
- Vault + 经济插件 - 用于迁移余额
- AuthMe - 用于迁移登录密码
- Residence - 用于迁移领地声明
- PlayerTitle - 用于迁移头衔
配置
配置文件位于 plugins/SyIDChange/config.yml:
# 启用调试模式
debug: false
# 在迁移前备份数据
backup-before-migrate: true
# 迁移设置
migration:
inventory: true # 库存数据
authme: true # AuthMe 密码
residence: true # Residence 领地声明
vault: true # Vault 余额
playertitle: true # PlayerTitle 头衔
注意事项
- 备份很重要! 请在使用此插件之前备份你的服务器数据
- 原始玩家数据文件将被重命名为
.dat.migrated_timestamp 作为备份
- 如果新玩家已有数据,将在覆盖之前创建一个备份
- 建议在玩家离线时执行迁移
SyIDChange
A Minecraft plugin for 1.21.x, supporting Purpur and Paper, designed to help players who have changed their names migrate their data.
Author
Shiyuan
Features
Use /sychange <old_name> <new_name> to migrate inventory data from the old username to the new username.
Supported data migration:
- ✅ Inventory Data (Required)
- ✅ AuthMe Password
- ✅ Residence Claims
- ✅ Vault Balance
- ✅ PlayerTitle Titles
Installation
- Place the plugin into your server's
plugins folder
- Restart the server or use a plugin manager to load it
- The plugin will automatically create configuration files
Usage
Commands
/sychange <old_name> <new_name>
Permissions
syidchange.use - Allows using the data migration command (Default: OP)
syidchange.admin - Allows using all administrative features (Default: OP)
Example
/sychange OldName NewName
This will migrate all data from OldName to NewName.
Dependencies
Required:
Optional (Soft Dependencies):
- Vault + Economy Plugin - For migrating balances
- AuthMe - For migrating login passwords
- Residence - For migrating claims
- PlayerTitle - For migrating titles
Configuration
Configuration file located at plugins/SyIDChange/config.yml:
# Enable debug mode
debug: false
# Backup data before migration
backup-before-migrate: true
# Migration settings
migration:
inventory: true # Inventory data
authme: true # AuthMe password
residence: true # Residence claims
vault: true # Vault balance
playertitle: true # PlayerTitle titles
Notes
- Backup is important! Please backup your server data before using this plugin
- Original player data files will be renamed to
.dat.migrated_timestamp as backup
- If the new player already has data, a backup will be created before overwriting
- It is recommended to perform migration when the player is offline
Compilation
Compile using Maven:
mvn clean package
The compiled plugin will be located at target/SyIDChange-1.0.0.jar
评论 0
登录后参与评分
还没有评论,来抢沙发吧