If a villager moved to a different world it would have time from previous world and wouldn't restock.
Added the ability to have villagers be silenced when their ai is disabled.
Fix an instance when a nametag would dupe when the nametag didn't have a name
Fixed radius for command taking from config and not the command
Fixed unnamed nametags giving extra nametags
Fixed config typo
Fixed villagers permanently immune to damage
Added avl.notify.update
Fixed a minor incompatibility with formatted nametags
Fixed restock not working and default permissions
Complete Rewrite / Warning
Please run the /avlremove command as this will wipe any of the old data on villagers and ensure compatibility with new code.
New Commands
/avlunoptimize Allows you to unoptimize in a radius
/avlremove Removes all changes done by the plugin
Bug Fixes
Fixed a memory leak with workbench radius optimize Fixed the villager renaming even though it was on cooldown
Please report any issues to me on github or the discord
Updated Permission List
avl.cooldown.bypass
avl.disable
avl.message.nextrestock
avl.optimize
avl.reload
avl.remove
avl.restockcooldown.bypass
avl.unoptimize
Fixed prevent trade option from not working.
Fixed the Block check to finally work again.
Added the ability for work stations to disable villagers
Added a check that will prevent trading if the villager isn't disabled (toggleable)
Fixed a bug that when the placeholder from time is removed from a message it would throw an error
PLEASE DELETE THE CONFIG FILE AND GENERATE A NEW ONE
Added Hex Support For Messages
Fixed restock message showing a negative number after the last restock
Changed the way how disabling the villagers work. They will now be affected by gravity, players pushing them, and water
PLEASE DELETE CONFIG FILE SO A NEW ONE CAN GENERATE WITH THE NEW CHANGES
Rewrote Restock Villager to support multiple times Rewrote Block System to support multiple blocks Rewrote NamteTag system to support multiple nametags
Fixed an issue with AI staying disabled after Villager was turned into a zombie villager.
Fixed by not allowing the villager to take damage when disabled by the plugin.
Fixed Villager not having ai re-enabled when no longer standing on the disable block.
Fixed nametags duping when right clicking a villager on cooldown
Added support for 1.17
Fixed an error when people would close the wandering traders inventory
Added command /avloptimize <radius>
This will optimize any villager in the specified radius. This is meant to be used as an admin command for large servers to easily disable villagers for players.
Configurable max radius for /avloptimize
New permissions:
avl.optimize
All the current know bugs have been fixed.
Fixed a bug where right clicking with a blank nametag would give them another. Causing a dupe with nametags.
Fixed error when right clicking any other mob.
Completely rewrote the plugin to be cleaner and removed any known bugs.
Added the feature that will let villagers level up when they meet xp requirements. This removes the need for players to rename villagers to level up
added bstats
Fixed when Villagers having AI disabled by block they wouldn't restock
Fixed a bug if the world had a custom name and it would error.
Added message to config but it should auto update now.
Fixed block not properly disabling ai.
PLEASE UPDATE OR DELETE YOUR CONFIG FOR THE NEW CHANGES.
The most up to date version of the config can be found
here.
This update allows you to toggle the use of nametags when renaming villagers.
Added the option to use a certain block to disable villager ai. This is off by default.
Added the option to disable the use of nametags disabling the villager ai.
Fixed world name being hard coded. Should no longer error.
THIS UPDATE CHANGES MESSAGES SO PLEASE UPDATE THEM
Added permission to bypass rename cooldown:
avl.renamecooldown.bypass
Added permission to bypass restock cooldown:
avl.restockcooldown.bypass
Added a permission that sends a message telling the player when the next restock is:
avl.message.nextrestock
Changed the cooldown message to be minutes and seconds. Not just seconds
When naming villager for first time it will no longer set the cooldown and you have to wait to rename it
Names no longer have to exactly match the disable name. It ignores capitalization.