ATTENTION: CHANGES IN PLAYER DATA STORAGE TYPE FROM .json to .yaml [Follow the steps before updating cosmin to 1.20.5+]
Hey there, this is a update for 1.20.5+ versions since 1.20.5 made some changes in how items are stored (going from NBT to Components), that's why I had to make few changes in cosmin so there will be minimal loss of player data from the cosmetic inventory(some nbt data is bound to be lost unfortunately)
So, Follow the steps to minimize the loss in the player's cosmetic inventory data
1) Run this Cosmin version(or newer) on your 1.20.4(or older) version of server, if you dont have a backup of your older server, then run this Cosmin version along with your current plugins/Cosmin folder on a fresh 1.20.4(or older) server. 2) stop the server 3) confirm whether, the player-data.yml & player-data-disabled.json files are created in plugins/Cosmin folder (if not, kindly DM me on discord[@sachin23] or spigot) 4) thats it, now just copy this plugins/Cosmin folder in your new 1.20.5+ server and run cosmin normally.
if you face any issue or your cosmetic inventory is completely empty even after following the steps, kindly DM me on discord[sachin23] or spigot