(+) Added canOtherPeopleRenamePiglin inside the config. This option will prevent other players from using a name tag on your piglin.
(+) Added curedPiglinKeepsOldItems inside the config. This option ensures that the piglin will retain any items it had when it was a zombified piglin.
(+) Added curedPiglinKeepsNBTTags inside the config. This option will preserve most NBT tags the piglin had when it was a zombified piglin, including the teams it was part of.
(+) Piglins will now be added back into their respective teams after a server restart, and they will retain most NBT tags.
Note: Some NBT tags are not accessible using the Spigot API, and therefore, I cannot add them with my plugin.
(+) Added professions! Check the professions.yml file.
(+) Professions can be disabled.
(+) Ability to change the loot table for every profession. This includes the amount, material, name, lore, enchants, and potion effects. Enchants can be defined to have a random level, e.g., [enchant]:[minLevel]-[maxLevel] or [enchant]:[level]. Potions can have a random duration and effect level, e.g., [potionType]:[minLevel]-[maxLevel]:[minDurationInSeconds]-[maxDurationInSeconds], or [potionType]:[level]:[durationinSeconds].
(+) Ability to specify which items a profession can pick up and trade with - only for Spigot version 1.16.5 and up.
(+) Ability to change the chance a piglin will select professions once they are cured.
(+) Ability to change how many items a profession can pick up at once. E.g., default: minValue: 1, exampleProfession: minValue: 3, maxValue: 8. The value will be selected randomly between 3 and 8.
(+) Ability to define certain items that will allow piglins to change their profession when right-clicked, based on a chance.
(+) Setting allowProfessionChange, if enabled, will allow piglins to change professions using the aforementioned item if and only if they have the default permission.
(+) Setting allowProfessionChangeAfter works similarly to the setting above but applies if the piglin has a profession other than the default. The previous setting needs to be enabled for this one to work.
(+) Setting professionCanBeChangedByNonOwner determines if a non-curer player can try to change a piglin's profession using the aforementioned items.
(+) Setting canPreciousItemsBeUsed defines a precious material. Precious items have changed name, lore, enchants, NBT tags, etc. If this setting is enabled, then piglins won't be able to pick up those items for trade. Moreover, these items won't be usable to change professions.
(+) Added the ability to change the skin of each profession, which requires the DisguiseAPI plugin to be installed. Check the comments in the professions.yml file for configuration details. One limitation of this setting is that you can't have baby piglins with skins; they will appear adult-sized, but the entity behind the disguise will still be a baby.
(/) Fixed some bugs related to the spawning of piglins.
(/) The config file will now back itself up after updating the plugin for the first time.
(/) The piglin data file will now back itself up after every server start. This option can be disabled in the config.
(/) It has been a very long time since I last updated this plugin, over a year ago, and I didn't quite remember how the code worked. I didn't attempt to study it; I just jumped in and made the changes. I haven't encountered any data corruption between changing versions, but that's why the data.yml file backup was implemented, just in case.
If you encounter any bugs or have suggestions you want implemented, contact me on Discord: balustrada. I only log into my Spigot account once every couple of months, so you'll receive a much faster response there.
(+) Fixed a bug where piglins would get lost, despawn, and lose their items.
(/) Changed data.yml and config.yml. The data.yml will now convert itself to the newer version, and the config will update itself while retaining any old settings.
(/) Changed the instant curing of piglins after a server restart. Now, the timer will simply continue from where it left off.
(+) Piglins now retain their potion effects after a server restart.
(+) The turnAggressiveWhenHit setting in the config is now split into turnAggressiveWhenHit and turnAggressiveWhenHitByCurer, both set to false by default.
(+) Added the setting followCurer in the config. If set to true, players can make piglins follow them by SHIFT+RIGHT_CLICKING on them. Piglins cannot follow if the player is in creative mode, carrying a crossbow in their main hand (see armorInventoryModify below), or if they are babies (see feedGoldenCarrot).
(+) Added the setting cancelTransformationWithMilk, both set to false by default. The zombified curing process can be canceled by right-clicking with milk.
(+) Similar to cancelTransformationWithMilkByAnyone but works for any player on any piglin. It will not work, even if set to true, if cancelTransformationWithMilk is set to false.
(+) Added the setting feedPiglin, both set to false by default. Items that can be fed to piglins include Enchanted Golden Apple, Golden Apple, Suspicious Stew, Poisonous Potato, Chorus Fruit, Honey Bottle, Pufferfish, Spider Eye, Milk Bucket, and any drinkable potion (refer to the Minecraft wiki for each effect).
(+) Added feedPiglinByAnyone. Same as feedPiglin but works for any player on any piglin. It will not work, even if set to true, if feedPiglin is set to false.
(+) Added the setting feedGoldenCarrot, an extension setting for feedPiglin and feedPiglinByAnyone. Feeding a cured piglin a golden carrot will turn it into an adult if it's a baby and an adult if it's already a baby.
(+) Added the setting getInfo. When SHIFT+LEFT_CLICKING on a cured piglin, the curer and staff with permission (curedpiglins.piglininfo) will be able to see its information.
(+) Added getInfoByAnyone. Same as getInfo but works for any player on any piglin. It will not work, even if set to true, if getInfo is set to false.
(+) Added the setting informCurerAboutPiglinDeath. When the piglin dies, it will send a message to its curer, providing information about the death date, death location, last damage cause, last damage cause date, last date hit by a player, and the last player to ever hit the piglin.
(+) Added the setting armorInventoryModify. When RIGHT_CLICKED on a piglin, it will open its inventory, displaying (and having the ability to modify) their armor, item in the main hand, and an extra slot for storage. This can only be opened by the curer or staff with permission (curedpiglins.openarmourinventory).
(+) Added armorInventoryCanBeOpenedByAnyone. If set to true, any player can open any piglin's inventory, even if they are not the curer. It will not work, even if set to true, if armorInventoryModify is set to false.
(+) Added the setting armorInventoryBonusRows (values from 0 to 5). This setting adds extra rows to the piglin inventory.
(+) Added the dropItemsFromInventoryOnDeath setting. If set to true, the piglin will drop ALL items stored in its inventory on death. If set to false, the items are lost on death.