SecurityVillagers is a plugin for Minecraft servers. Currently, it officially supports Spigot / PaperSpigot and Bukkit.
This plugin allows you to protect villagers and any mob related to them, you can choose which players/groups can attack/interact with these mobs.
If you don't like some features that have been pre-configured for you, you can easily remove them by denying the permission or, if there is an option, disable it via the
SecurityVillagers uses the AGPLv3 license (GNU Affero General Public License v3.0).
You can read the license here.