This is a simple plugin that allows your players to optimize their own villagers and keep vanilla behavior. This will allow trading halls to keep their twice a day villager restocks but has no automation so I won't effect farms using villagers.
Features of the Plugin
-
Toggle AI with nametags - Toggle AI with a block
- Toggle AI with a workstation
- Toggle the use of nametags when naming
- Toggle villagers making noise
- Restocks Villagers trade
- Set certain times for villagers to restock each day
- Will level villagers up
- Messages support hex code formatting
While the villagers are optimized they will not sleep in beds, breed while ai is disabled, take damage from zombies, or work as part of farms.
Commands
Reloads the AVL plugin
• /avlreload
Will optimize all villagers within a configurable radius by renaming them. When using the radius optimize it can bypass claim plugins. This feature is meant to be used as an admin command.
• /avloptimize
Will unoptimize all villagers within a configurable radius by renaming them
• /avlunoptimize
Will remove all changes done by the plugin server wide
• /avlremove
Permissions
Default Permissions• avl.message.nextrestock - Sends a message telling the player when the next restock is
Admin Permissions • avl.reload - Reload Command
• avl.cooldown.bypass - Bypass Cooldown
• avl.restockcooldown.bypass - Bypass Restock Cooldown
• avl.notify.update - Notifies if there is a plugin update
• avl.optimize - Optimize in a surrounding radius
• avl.unoptimize - Unoptimize in surrounding radius
• avl.disable - Disables the plugin for specific player
If you encounter any bugs please open a github issue. I will try to solve it as soon as possible!
To report bugs please create an issue on Github.
To request a feature open an feature request on Github.
For support, you can join the Discord Server.
Thanks for considering this plugin!
All Versions
+ Add VersionIf a villager moved to a different world it would have time from previous world and wouldn't restock.
Fixed config typo
Added Permission
avl.notify.update
- 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