change the restart vote to have no effect with admins online (#22945)

* Change the vote and cvar

* Only denies successful votes

* Add comments because I'm a good coder, I swear

* I added a space to the first line of ccvars it's so over
This commit is contained in:
LankLTE
2023-12-24 23:55:56 -08:00
committed by GitHub
parent 4cd4805a01
commit 82ddf451e6
3 changed files with 13 additions and 9 deletions

View File

@@ -1223,7 +1223,7 @@ namespace Content.Shared.CCVar
CVarDef.Create("vote.restart_required_ratio", 0.85f, CVar.SERVERONLY);
/// <summary>
/// Whether or not to restrict the restart vote when there's online admins.
/// Whether or not to prevent the restart vote from having any effect when there is an online admin
/// </summary>
public static readonly CVarDef<bool> VoteRestartNotAllowedWhenAdminOnline =
CVarDef.Create("vote.restart_not_allowed_when_admin_online", true, CVar.SERVERONLY);