CVar for custom name in client-side ahelp menu. (#22069)

* the grinch will ruin christmas

* comments here, comments there, comments should not be a thing :godo:

* Unsubscribe from CVar

* rename cvar to be clearer.

* Change switch to if statement.
This commit is contained in:
Simon
2023-12-20 00:40:37 +01:00
committed by GitHub
parent 3293892941
commit dc017dd6fa
2 changed files with 50 additions and 8 deletions

View File

@@ -776,6 +776,11 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<bool> AdminDeadminOnJoin =
CVarDef.Create("admin.deadmin_on_join", false, CVar.SERVERONLY);
/// <summary>
/// Overrides the name the client sees in ahelps. Set empty to disable.
/// </summary>
public static readonly CVarDef<string> AdminAhelpOverrideClientName =
CVarDef.Create("admin.override_adminname_in_client_ahelp", string.Empty, CVar.SERVERONLY);
/*
* Explosions
*/