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
- It stores an name to UUID association table
- 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
- 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
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta