Villager Modifications is a way for you to control the economy of enchanted books in your server without turning villagers off. Villagers provide ridiculously cheap trades for enchantments that should be harder to get than just 30 emeralds. Using this plugin you can control exactly what currency is used to trade for the every trade as well as how many of said currency is needed.
If you have any problems with the plugin, or if you would like news and information on updates, please join my discord server https://discord.gg/rBYrcYVYsP.
The current version is able to override all villager trades in every villager that is created on the server without needing to set up one villager that all players have to talk to. Players can go away and make villagers in their own bases and the restrictions will still apply. Great for economy based servers using plugins such as towny as a support to keep enchanted books and any other items trade able worth something.
Also has support for an option that changes the books needed for the enchanted books trades to allow for a custom book that is only accessible to the players how you see fit. Using this option an OP can receive a book using /vmbook that you can use as a template for vote crates or /shops to ensure that the supply of the books are limited.
New in 1.3: Added the ability to ensure compatibility with other villager plugins through a whitelist feature. Available to OPs or users with the permission 'VillagerModifications.whitelist'. You can set villagers that should not be included in the effects of this plugin using the /vmwhitelist command, and remove them if added by accident using /vmremove. To turn these off use /vmoff. Whitelist is stored in a separate file from the config and should not be edited other than through the use of the in game commands,
Also new in 1.3: Take total control of the trades for any item that villagers are able to provide to players. By setting up the item into a list in the config you can then restrict and edit the trades that result in the player receiving that specific item. Simply add the item to the 'CustomItem' list using its bukkit name in full capitol letters (found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) and then copy the example of 'CLOCK' at the bottom of the config to create your own restrictions for any item. Ensure that the name in the 'CustomItem' is the exact same as the title of the block of restrictions. Shown in the images is an example of adding bookshelfs to be changed,
Time restrictions are available for the villagers also. By setting the value restrictions to on the villagers with the specific enchanted book trades will only be able to be accessed at a certain time of the day.
When setting a value for uses, the number is the amount of times that the trade can be used before the villager restocks. If set to 1 the base stock will be 1 and then the villager can restock up to 2 times per day using normal mechanics. This means that the first time the villager is cured or spawned you will be able to get 3 books and then 2 books each day following that.
Setting the value of uses to 0 will allow you to completely disable the trading of that particular enchanted book, allowing access to them to be kept to normal enchanting and loot from structures.
Feel free to use the code open sourced in the GitHub link above to create your own versions and for inspiration on how to code using villager mechanics. Any questions leave in the comments and I will try to reply at least once per day. If you are using the plugin let me know the name and ip and I will add you to the list of servers using.