Makes admins not count towards the playercount cap (#33424)
* Makes admins not count towards the playercount cap * Update Content.Shared/CCVar/CCVars.Admin.cs (thx Aeshus Co-authored-by: Thomas <87614336+Aeshus@users.noreply.github.com> * Actually fixes whitespace on the comments Thanks VScode very good IDE --------- Co-authored-by: Thomas <87614336+Aeshus@users.noreply.github.com>
This commit is contained in:
@@ -149,6 +149,15 @@ public sealed partial class CCVars
|
||||
public static readonly CVarDef<bool> AdminBypassMaxPlayers =
|
||||
CVarDef.Create("admin.bypass_max_players", true, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether admins count towards the total playercount when determining whether the server is over <see cref="SoftMaxPlayers"/>
|
||||
/// Ideally this should be used in conjuction with <see cref="AdminBypassPlayers"/>.
|
||||
/// This also applies to playercount limits in whitelist conditions
|
||||
/// If false, then admins will not be considered when checking whether the playercount is already above the soft player cap
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> AdminsCountForMaxPlayers =
|
||||
CVarDef.Create("admin.admins_count_for_max_players", false, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Determine if custom rank names are used.
|
||||
/// If it is false, it'd use the actual rank name regardless of the individual's title.
|
||||
|
||||
Reference in New Issue
Block a user