From d5f978858de15871df07effc9afbd7de6e53c15f Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 18 Sep 2021 18:28:37 -0500 Subject: [PATCH] set sv_sayname on connection restore --- Application/IW4MServer.cs | 5 +++++ SharedLibraryCore/Server.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Application/IW4MServer.cs b/Application/IW4MServer.cs index b4485a336..525e43698 100644 --- a/Application/IW4MServer.cs +++ b/Application/IW4MServer.cs @@ -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; } diff --git a/SharedLibraryCore/Server.cs b/SharedLibraryCore/Server.cs index 44c888953..9c0564616 100644 --- a/SharedLibraryCore/Server.cs +++ b/SharedLibraryCore/Server.cs @@ -347,6 +347,6 @@ namespace SharedLibraryCore // only here for performance private readonly bool CustomSayEnabled; - private readonly string CustomSayName; + protected readonly string CustomSayName; } }