Portal Home > Knowledgebase > Minecraft > All Other Articles > How to Reset a Player's Location and Inventory on a Minecraft Server


How to Reset a Player's Location and Inventory on a Minecraft Server

You may wish to reset a player’s location and inventory or edit their player file on a Minecraft server from time to time. It is useful when you want the player to respawn at spawn with an empty inventory or need to pull a player out of an area of the world that is causing server crashes or slow downs. This tutorial will give you the option of resetting or editing a player’s location and inventory by removing or editting the playername.dat or uuid.dat file.

Advanced users may want to edit their player’s data file using an external program called NBTExplorer. The benefit of editing the player’s data file is that their inventory won’t be erased or the player won’t lose modded information that is tied to the player (Forge/Cauldron Servers). The advanced sections assume that you have downloaded and openned NBTExplorer.

Minecraft 1.7.6 or newer (UUID)

On Minecraft 1.7.6 and above, Mojang uses a new UUID format. Use a UUID lookup tool, like this, to determine the UUID of the player you wish to reset.

  1. Make sure that the player you wish to reset is logged out of the server.
  2. Use FileZilla to connect to the server FTP.
  3. On the remote site, open the game folder.
  4. Open the world folder. It is usually world, unless you have changed it.
  5. Open playerdata.
  6. Simple: Delete, or download/rename and then delete, uuid.dat. Replace uuid with the UUID that you looked up.
  7. Advanced: Instead of deleting uuid.dat, download it to a location on your computer such as your desktop where you can easily find it.
  8. From NBTExplorer, press the Open NBT Data Source button that looks like a folder.
  9. Navigate to where you saved the uuid.dat file, select it, and press open.
  10. Scroll down until you find the tag labeled Pos with 3 entries and press the + symbol next to it. These are the data tags that store where a player is in game.
  11. Double click on the tags one at a time and change their values. The tags aren’t labelled, but they are XYZ in that order. Y is height. Be careful what you set these numbers to as you can cause a player to spawn in the ground. I suggest setting their value to your world’s spawn or a known safe coordinate location.
  12. Upload the uuid.dat back to your server in the same place you got it. Overwrite or delete the original one. Make sure that the player in question is not online at the time or it won’t work.

Minecraft older than 1.7.6 (non UUID)

  1. Make sure that the player you wish to reset is logged out of the server.
  2. Use FileZilla to connect to the server FTP.
  3. On the remote site, open the game folder.
  4. Open the world folder. It is usually world, unless you have changed it.
  5. Open players.
  6. Simple: Delete, or download/rename and then delete, playername.dat. Replace playername with the name of the player you wish to reset.
  7. Advanced: Instead of deleting playername.dat, download it to a location on your computer such as your desktop where you can easily find it.
  8. From NBTExplorer, press the Open NBT Data Source button that looks like a folder.
  9. Navigate to where you saved the playername.dat file, select it, and press open.
  10. Scroll down until you find the tag labeled Pos with 3 entries and press the + symbol next to it. These are the data tags that store where a player is in game.
  11. Double click on the tags one at a time and change their values. The tags aren’t labelled, but they are XYZ in that order. Y is height. Be careful what you set these numbers to as you can cause a player to spawn in the ground. I suggest setting their value to your world’s spawn or a known safe coordinate location.
  12. Upload the playername.dat back to your server in the same place you got it. Overwrite or delete the original one. Make sure that the player in question is not online at the time or it won’t work.


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to Enable Command Blocks (Views: 58795)
How to Install the Minecraft Snapshot Server (Views: 35088)
How to Change the Minecraft Version (Views: 5803)
How to Enable Flight on A Minecraft Server (Views: 84635)
How to Agree to the EULA on a Minecraft Server (Views: 254525)

Powered by WHMCompleteSolution

Language: