CVar to promotehost automatically. (#17643)

This commit is contained in:
Pieter-Jan Briers
2023-06-26 05:01:30 +02:00
committed by GitHub
parent 1005c02ab2
commit 4c8965ac32
2 changed files with 11 additions and 1 deletions

View File

@@ -430,6 +430,12 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<bool>
ConsoleLoginLocal = CVarDef.Create("console.loginlocal", true, CVar.ARCHIVE | CVar.SERVERONLY);
/// <summary>
/// Automatically log in the given user as host, equivalent to the <c>promotehost</c> command.
/// </summary>
public static readonly CVarDef<string> ConsoleLoginHostUser =
CVarDef.Create("console.login_host_user", "", CVar.ARCHIVE | CVar.SERVERONLY);
/*
* Database stuff