Articles on: Minecraft

How to Reset a Player's Data

In some cases, a player's inventory may be corrupted or they may be stuck in a corrupted chunk. This could cause the player to be unable to log into the server and, in some cases, cause their game or the entire server to crash.

Although resetting the world will fix this issue, this would mean loss of any or all world changes which may not be ideal for your server. An alternative way to fix this is to manually delete that player's playerdata (.dat) file, which will reset their inventory, location in the world, and other Vanilla Minecraft-based player data. As most plugin data are stored in the respective plugin folders, these will not be affected.

HOW TO FIND AND RESET A USER'S PLAYERDATA



You can do this by searching for their username in a website such as NameMC.com.

Once you have found the user, click on the found profiles.

After entering the user's profile for which we want to delete the data, we copy the UUID by clicking the Copy button.

Go to the world folder on your server. You can do this through accessing your server files in your browser or through FileZilla. We have a guide to finding your server files here: How to install and use FileZilla
Within your world folder, navigate to playerdata folder, and then open it.

Find and select the file which has the same name as that user's UUID.

After selecting the file, click Recycle.

You will get this pop-up window, which we have to click on the red Recycle button, make sure it is the UUID dat, which you want to delete.

Restart your server for the change to take effect.

Once the player rejoins your server, their inventory and all in-game progress (Vanilla) will be reset and they will log into your server's default spawn location.

If removing their playerdata doesn't solve the issue, it may also be necessary to remove their username and UUID from the usercache.json file, which can be found in the main server directory. When editing this file be sure not to break the formatting. 

Recover .dat with apollo panel function



If you deleted a wrong .dat file and want to get it back, you could do the following.

Navigate to your server files in your apollo panel.

There you will have a folder called Recycle Bin, click on it. The world folder will appear first, you will have to navigate between the folder yourfolderworldname > playerdata and there will be the .dat that you deleted by mistake.

Here you will have the .dat deleted by mistake, click on the three dots and press Restore button.

This pop-up window will appear, just click on Move.

And that's it, you will have the .dat back. Restart the server to apply the changes.


HOW TO RESET A PLAYER ON AN OFFLINE SERVER



If you are running an offline server, UUIDs are generated differently than normal, meaning that websites such as NameMC will not give you the correct UUID, and won't even give you a UUID for players that do not exist. However, you can still follow the same steps as above once you have gotten your UUID.


If you require any further assistance, please create a ticket here.


Created By: Steven C.

Updated on: 10/09/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!