Disabling certain features for players in game editor

I am trying to create a map based on a fictional continent I created, but I am trying to prevent certain players from building certain features, particularly a town center or military building, by disabling that. How do I do that?

In this game, there is the main player, an allied player, a neutral player, and a team of five other players. Of this team, only one can produce soldiers, and the others have to give resources to it in exchange for protection.

How do I do this?

You need to go in the “options” tab

In the bottom you can choose to disable buildings, units and techs.

To do so click on the arrow pointing to the left to make whatever you want to disable go into the left box