Rcon Changes

Rcon Window - minor changes to the player list, online player count and server status.
Online Player Count - fixed the online player count to display the correct value.
This commit is contained in:
Brett Hewitson 2022-05-08 01:08:23 +10:00
parent 7c43821691
commit 74bad02b94
13 changed files with 454 additions and 341 deletions

View file

@ -310,8 +310,7 @@ namespace ServerManagerTool.Lib
try
{
var players = server?.GetPlayers()?.Where(p => !string.IsNullOrWhiteSpace(p.Name?.Trim()));
onlinePlayerCount = players?.Count() ?? 0;
onlinePlayerCount = serverInfo?.Players ?? 0;
}
catch (Exception)
{