LoadPlayerByName 图标

LoadPlayerByName

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/load-player-by-name
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4

平台: bukkit paper spigot

资源介绍

Load Player By Name

Minecraft stores the player data by their UUIDs, but the UUIDs in online mode servers (provided by Mojang's official API) are different with the one generated offline.

This cause issues when you want to change online/offline mode while not affecting your players' data

How This Plugin Works

I guess you don't care about this 1. It stores an name to UUID association table 2. When a player joins: - We receive an UUID of the player (new ID) - Look the player name in the table and get the old ID - If not present, try getting the Mojang official UUID as old ID - If even the official ID isn't present - It's a new offline player, ignore - Try to move the player data from old ID to new ID - If succeeded, it will kick the player once, and prompt them to rejoin immediately 3. When a player quits: - Update the association table

Cases

  • Server was online mode, plugin not installed

    You can switch to offline mode with this plugin installed now

  • Plugin installed

    You can switch between modes with ease, without player data lossing

Notes

  • I don't know what will happen if you switch between modes and a player change their username at the same time
  • I sometimes spell the plugin LoadByPlayerName, well, doesn't matter I guess
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Mutants and Zombies

价格:0 墨喵币
下载量:0

查看详情
Enchantments to Books

价格:0 墨喵币
下载量:0

查看详情
AppleSMP Modpack

价格:0 墨喵币
下载量:0

查看详情
Gilded Armor

价格:0 墨喵币
下载量:0

查看详情