ATTACK_ENTITIES permission with configurable mob whitelist
Is your feature request related to a problem?
This suggestion came from my small personal server, when one of the players asked why he couldn't attack zombies that spawned and actually had to lure them out of the claimed area to kill them. The issue is that for neutral/allied factions that won't give ATTACK_ENTITIES permission, there would be no way for them to defend themselves against these mobs unless they use bows or crossbows (Which I'm not sure is a bug or intended. Any ranged weapon can still deal damage to mobs on a claimed area even without the permission granted.)
Describe the solution you'd like.
The solution I'd like is to add a configurable whitelist to the config file for attackable entities or mobs, or a better option would be to make this whitelist a per-faction permission so you can configure which factions can kill which mobs.
If the main solution is too far-fetched or too hard to do, which is very understandable, an alternative solution would be to add a config to disable the ATTACK_ENTITIES permission (or any other permission) for all factions like how the ClaimsProtection = false config works. I figured this would be easier to do (I have no idea how to code).
Describe alternatives you've considered.
The alternative or workaround we made was to request the permission from the corresponding faction or allow the other factions with the ATTACK_ENTITIES permission. This is problematic because it opens the faction to unnecessary griefing or killing villagers/mobs that are important to the faction.
Other
That's all my suggestion for now. My playerbase and I love this mod and would like more features to be added on future updates. Thank you for making this mod.