Server migration guide

Minecraft player UUID changed after online-mode migration

Changing online-mode or moving between account authentication setups can make one username appear as two UUIDs. The old inventory is often still present; it is simply attached to the previous UUID file.

Published 2026-08-098 min read

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 setting to verify
server.properties
online-mode=true|false

Find the old and new playerdata files

  1. Stop the server and copy the entire world/playerdata folder.
  2. Check usercache.json and server logs for the username-to-UUID mapping used by each session.
  3. Open both candidate UUID files and compare LastKnownName, Pos, Inventory, and other recognizable data.
  4. Treat the file containing the expected inventory as the source; never choose by filename alone.
UUID-named files
<world>/playerdata/<old-uuid>.dat
<world>/playerdata/<new-uuid>.dat

Back up playerdata, advancements, and stats

FolderWhy keep it
playerdataPosition, inventory, health, dimension, and Ender Chest
advancementsPer-player advancement progress tied to the UUID
statsPer-player statistics tied to the UUID

Rename or copy the old data safely

  1. Keep the old and new files in a dated backup folder before making any replacement.
  2. Prefer copying the needed data into a test file first; preserve the new file until you have verified the result.
  3. If you must replace the new file, save the previous version as a .bak file rather than deleting it.
  4. 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.

Compare UUID-named files

Open the playerdata editor

Inspect old and new player files as typed NBT trees before you choose which data to restore.

Open the playerdata editor

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.

Ready when your file is

Inspect the structure before you change it.

Open a supported Minecraft Java Edition file, stage edits, and export a separate copy without sending world data to a server.

Open the NBT editor