mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Update VoteMenu.cs
Cant vote a time lower than the Host::TimeLimit
This commit is contained in:
parent
8a0e3d6a65
commit
c3aa660dfd
|
|
@ -318,6 +318,9 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
|||
messageClient(%client, "", "\c2Switching to this time wouldn't affect the time limit at all.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(%arg1 < $Host::TimeLimit)
|
||||
return;
|
||||
|
||||
if((!%isAdmin && $Host::AllowPlayerVoteTimeLimit) || (%isAdmin && %client.ForceVote))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue