diff --git a/Classic/scripts/autoexec/TeamManagement.cs b/Classic/scripts/autoexec/TeamManagement.cs index 60bf53d..bd4d2b2 100644 --- a/Classic/scripts/autoexec/TeamManagement.cs +++ b/Classic/scripts/autoexec/TeamManagement.cs @@ -175,6 +175,9 @@ function GameConnection::onDrop(%client, %reason) // Called in GetTeamCounts function TeamBalanceNotify(%game) { + if(!$Host::EnableTeamBalanceNotify && !$Host::EnableAutobalance) + return; + if( Game.numTeams > 1 && $TotalTeamPlayerCount !$= 0 ) { //Uneven @@ -228,6 +231,9 @@ function NotifyUnbalanced( %game ) if(isEventPending($NotifySchedule)) cancel($NotifySchedule); + if(!$Host::EnableTeamBalanceNotify && !$Host::EnableAutobalance) + return; + if( $TBNStatus !$= "NOTIFY" ) //If Status has changed to EVEN or anything else (GameOver reset). return; @@ -360,6 +366,9 @@ function Autobalance( %game ) if(isEventPending($AutoBalanceSchedule)) cancel($AutoBalanceSchedule); + if(!$Host::EnableAutobalance) + return; + if($TBNStatus !$= "NOTIFY") //If Status has changed to EVEN or anything else (GameOver reset). return;