In your code, you're using inventory titles to check if the villager is a clickvillager. This should be avoided as it can easily be exploitable, (players can easily rename inventories and trick your plugin into thinking it was a click villager)
You should look into inventory holders, and then check if the inventory is an instanceof your custom inventory holder
Thanks, I will look into this. Inventory holders seem to be bad for performance and a misuse of the API. But I'm currently working on another solution along with an update for ClickShop.
In your code, you're using inventory titles to check if the villager is a clickvillager. This should be avoided as it can easily be exploitable, (players can easily rename inventories and trick your plugin into thinking it was a click villager)
You should look into inventory holders, and then check if the inventory is an instanceof your custom inventory holder