Limiting structure grades

Hi,
is there a plugin that could limit the amount of structures of a specific grade?

For example:
I don't my players to build more than 20 x Twig Foundation. If they feel the urge to build more, they would need to upgrade them to any higher grade first, before allowed to buily Twig Foundations again.

I tried EntityLimit, but the prefabs are the same for all grade, so i cannot limit twig.

They can use gaps and other stuff to bypass your limit. Or they can grade them to wood and then break wood down, or as i said just use gaps

Oh it can be a global count of twig foundations for that player. They don't need to be connected.