Update server status max player

This commit is contained in:
jie65535 committed 2022-05-21 09:28:10 +08:00
1 parent 7f10eb8ac4
commit 563cee5c4c
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -1129,7 +1129,10 @@ namespace GrasscutterTools.Forms
{
var status = await DispatchServerAPI.QueryServerStatus(TxtHost.Text);
LblServerVersion.Text = status.Version;
LblPlayerCount.Text = status.PlayerCount.ToString();
if (status.MaxPlayer >= 0)
LblPlayerCount.Text = $"{status.PlayerCount}/{status.MaxPlayer}";
else
LblPlayerCount.Text = status.PlayerCount.ToString();
}
catch (Exception ex)
{