Hasn't worked since the MvM update. The plugin is active, I've limited my classes to 2 spies and 2 snipers, I can hear the "No" sound when I select these classes, but it still lets me play the class anyways.
Code:
"MaxClassPlayers"
{
//Default config if the map tree is not found
"default"
{
//When there is 8 to 32 players in the server
"1-31"
{
//Team2 = red AND team3 = blue
//set to 0 if you want this to only work on one team
"red" "1"
"blue" "1"
//Put -1 for no limit, 0 for disalowed, and any other number to set the limit
"scout" "-1"
"sniper" "2"
"soldier" "-1"
"demoman" "-1"
"medic" "-1"
"heavy" "-1"
"pyro" "-1"
"spy" "2"
"engineer" "-1"
}
//Anything that is not set, will be -1 (no limit)
}
}