diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index eb3aff3..08fb656 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -419,12 +419,19 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % return; } - if($CurrentMissionType $= "Siege") // Can't change time in this one + if($CurrentMissionType $= "Siege") // Can't change time in this one { messageClient(%client, "", "\c2Cannot change the time limit in this gametype."); return; } + // 30 minutes Only in Tournament mode + if($Host::TournamentMode && %arg1 !$= "30") + { + messageClient(%client, "", "\c2Only 30 minute time limit allowed in tournament mode."); + return; + } + // Eolk - don't let votes/admins end the map immediately by switching the time limit below the elapsed time if((%arg1 * 60 * 1000) < (getSimTime() - $missionStartTime)) {