Home›Java›Mods›LoadPlayerByName
LoadPlayerByName

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

Notes

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more