Gimps the restart vote. (#9327)
* Disables the restart vote when admins are online. * Gimps the restart vote so it requires 85% agreement. * address rebiew
This commit is contained in:
@@ -839,8 +839,14 @@ namespace Content.Shared.CCVar
|
||||
/// The required ratio of the server that must agree for a restart round vote to go through.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> VoteRestartRequiredRatio =
|
||||
CVarDef.Create("vote.restart_required_ratio", 0.7f, CVar.SERVERONLY);
|
||||
CVarDef.Create("vote.restart_required_ratio", 0.85f, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not to restrict the restart vote when there's online admins.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> VoteRestartNotAllowedWhenAdminOnline =
|
||||
CVarDef.Create("vote.restart_not_allowed_when_admin_online", true, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// The delay which two votes of the same type are allowed to be made by separate people, in seconds.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user