Fixed MYSQL Database not converting properly from 1.20.4 to newer versions Those using MYSQL Database will have to follow THIS process with their older (1.20.4) database to convert it properly.
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
Added whitelist-materials option in config, allows only those materials to be placed in cosmetic slots that are listed under this option. blacklist-materials and whitelist-materials are mutually exclusive, they cannot be used at the same time for each cosmetic slot
Example: with this configuration, players will only be able to put armor items in their cosmetic inventory
fixed resource pack textures not generating if path is not specified
added .mcmeta support for generator, now placing the texture_name.png.mcmeta(animation file) in textures folder will put the file correct place while generating pack
Added option to disable use of empty slots to hide armor completely
Code (YAML):
# weather or not players are allowed to hide there orignal armor by keeping the respective fake slot empty allow-empty-slots:
HEAD: true
CHEST: true
LEGS: true
FEET: true
OFFHAND: true