Advancements don't seem to save to playerdata during any session where you initially logged in through a duplicate login (with the logged in from another location on the other client).
This can commonly happen with clients that have bad connections, without actually requiring a second client. I did use a second client here to reliably reproduce this issue.
This does also mean that this can be used by bad actors to duplicate advancement rewards / functions, especially on servers that use custom advancements through datapacks.
Reproduction steps:
1. Start up a vanilla minecraft server.
2. Give your account operator perms on the server through console (/op <player>)
3. Start up 2 different vanilla clients on the same account.
4. Connect to the server with client 1.
5. Connect to the server with client 2, giving a 'logged in from another location' on client 1.
6. Gain any advancement with client 2 (ex: /advancement grant @s only minecraft:husbandry/plant_any_sniffer_seed)
7. Reconnect to the server with client 1 again, kicking 2 out. Notice that the advancement didn't save and that you can give it to yourself again. You can infinitely repeat this cycle between client 1 and 2.
Notes:
I have only been able to confirm this for advancements so far, I don't know yet if other types of playerdata may be affected. At least regular playerdata like positions seem to save correctly.
Thank you for your report!
However, this issue is Invalid.
Your game is modified as indicated by the asterisk symbol in the title of your window within the video you've provided. Besides, I tested this myself and wasn't able to reproduce it.
[media]Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.
A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.
Any plugin issues need to be addressed to the creator of the plugin or resource pack.
If you have problems on large servers like Hypixel, please contact them first as they run modified server software.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki