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:
@ -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"]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user