Minecraft server player files are named after UUIDs, not usernames. If the authentication mode or account identity changes, the same visible name can point to a new file while the old file still contains the inventory and position you want to recover.
Why the same username can have two UUID files
Online-mode servers normally resolve players through Mojang or Microsoft account identity. Offline-mode or cracked setups derive UUIDs differently. Switching modes, changing proxies, or changing the account used to join can therefore create a second UUID-named file.
Check online-mode before touching files
server.properties
online-mode=true|falseFind the old and new playerdata files
- Stop the server and copy the entire world/playerdata folder.
- Check usercache.json and server logs for the username-to-UUID mapping used by each session.
- Open both candidate UUID files and compare LastKnownName, Pos, Inventory, and other recognizable data.
- Treat the file containing the expected inventory as the source; never choose by filename alone.
<world>/playerdata/<old-uuid>.dat
<world>/playerdata/<new-uuid>.datBack up playerdata, advancements, and stats
| Folder | Why keep it |
|---|---|
| playerdata | Position, inventory, health, dimension, and Ender Chest |
| advancements | Per-player advancement progress tied to the UUID |
| stats | Per-player statistics tied to the UUID |
Rename or copy the old data safely
- Keep the old and new files in a dated backup folder before making any replacement.
- Prefer copying the needed data into a test file first; preserve the new file until you have verified the result.
- If you must replace the new file, save the previous version as a .bak file rather than deleting it.
- Do the equivalent comparison for advancements and stats only when you understand that those folders use the same UUID identity.
Verify the player after restart
Start the server only after the replacement is complete, then have the account join and verify the exact fields you intended to restore. If the server creates another new UUID file, stop again and resolve the authentication or proxy configuration before trying another copy.
Open the playerdata editor
Inspect old and new player files as typed NBT trees before you choose which data to restore.
Frequently asked questions
Can cracked or offline-mode servers use different UUIDs?
Yes. Offline-mode UUID derivation differs from authenticated online-mode identity. A mode change can make the same name resolve to a different playerdata filename.
What if there are several duplicate UUID files?
Compare LastKnownName, timestamps, position, and inventory contents on a backup copy. Do not merge several files into the live save until you know which one represents the intended player.
Does the server need to be shut down for a UUID migration?
Yes. Fully stop the server before inspecting or replacing playerdata, and keep all affected players offline while the files are changed and tested.