If your plugins store data by UUID, a player playing without an Xbox may lose their data because their UUID may change when reinstalling the game, changing devices, or other reasons.
This project was created to fix changing the player's UUID when logging in without an Xbox account.
- Gets the UUID saved in the player's NBT, if it is not found, uses the UUID passed by the client at login on the server and saves it in the NBT.
- Adds EntityHuman#getLoginUuid() method to get the UUID provided by the client at login.
- Uses in packets (e.g. PlayerListPacket or AddPlayerPacket) the UUID received using the EntityHuman#getLoginUuid() method.
- Clone the repository with patches:
git clone https://github.com/LuminiaBedrock/Nukkit-MOT-UUID-Patch.git
- Navigate to the Nukkit-MOT-UUID-Patch directory:
cd Nukkit-MOT-UUID-Patch
- Clone the Nukkit-MOT repository:
git clone https://github.com/MemoriesOfTime/Nukkit-MOT.git
- Apply the patches using the command:
./gradlew applyPatches
Now you can build the Nukkit-MOT and it will be ready for use!
These patches will work on any Nukkit-MOT, as long as there are no major changes with the modified fragments.
If the patches do not work or are not applied correctly, create a new issue with a description of the problem.