1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

allow Kekno to run with sv_running not returning anything :upside_down:

make sure script plugins output correct errors instead of being swallowed
prevent webfront error when webfront tab is left open on a server no longer being modified
This commit is contained in:
RaidMax
2020-02-01 12:27:14 -06:00
parent 25fdcd29d5
commit 3de5ce9ac0
9 changed files with 131 additions and 146 deletions

View File

@ -881,9 +881,9 @@ namespace IW4MAdmin
Version = RconParser.Version;
}
var svRunning = await this.GetDvarAsync<int>("sv_running");
var svRunning = await this.GetDvarAsync<string>("sv_running");
if (svRunning.Value == 0)
if (!string.IsNullOrEmpty(svRunning.Value) && svRunning.Value != "1")
{
throw new ServerException(loc["SERVER_ERROR_NOT_RUNNING"]);
}