Whitelist player constraints (#13812)

This commit is contained in:
Kara
2023-01-30 23:57:45 -06:00
committed by GitHub
parent 81990a4897
commit 917aa80b4b
3 changed files with 36 additions and 5 deletions

View File

@@ -940,6 +940,18 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<string> WhitelistReason =
CVarDef.Create("whitelist.reason", "whitelist-not-whitelisted", CVar.SERVERONLY);
/// <summary>
/// If the playercount is below this number, the whitelist will not apply.
/// </summary>
public static readonly CVarDef<int> WhitelistMinPlayers =
CVarDef.Create("whitelist.min_players", 0, CVar.SERVERONLY);
/// <summary>
/// If the playercount is above this number, the whitelist will not apply.
/// </summary>
public static readonly CVarDef<int> WhitelistMaxPlayers =
CVarDef.Create("whitelist.max_players", int.MaxValue, CVar.SERVERONLY);
/*
* VOTE
*/