set sv_sayname on connection restore

This commit is contained in:
RaidMax 2021-09-18 18:28:37 -05:00
parent e80753a4d3
commit d5f978858d
2 changed files with 6 additions and 1 deletions

View File

@ -310,6 +310,11 @@ namespace IW4MAdmin
Console.WriteLine(loc["MANAGER_CONNECTION_REST"].FormatExt($"[{IP}:{Port}]"));
}
if (!string.IsNullOrEmpty(CustomSayName))
{
await this.SetDvarAsync("sv_sayname", CustomSayName);
}
Throttled = false;
}

View File

@ -347,6 +347,6 @@ namespace SharedLibraryCore
// only here for performance
private readonly bool CustomSayEnabled;
private readonly string CustomSayName;
protected readonly string CustomSayName;
}
}