Listener WaterEvent = new WaterEvent(this);
You cannot call the getConfig() method outside of the main class(class which extends JavaPlugin) you will have to get the...
Don't tell him to learn Java... He is absolutely right. You are casting the entity as a Villager prior to checking if it's even a Villager
You're checking if the sender isn't a player when you have the '!'. Remove the !
What's the problem...
Edit: I'm guessing you didn't add the command to your plugin.yml
Cancel the EntityDamageByEntityEvent after checking if the entity is a player
If you requesting a plugin then follow the format:
It isn't going to work if you don't add the player to that list
Inside your plugin.yml the main path is case sensitive. Change it to
Don't forget to set that instance to null when the server disables
Separate names with a comma.