mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-23 20:29:45 +08:00
Update server status max player
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user