Added new discord plugin alert - online player count change.

This commit is contained in:
Brett Hewitson 2022-06-23 00:09:02 +10:00
parent c7da511d1e
commit c2374f3106
15 changed files with 89 additions and 10 deletions

View file

@ -332,6 +332,10 @@ namespace ServerManagerTool.Lib
break;
}
if (this.Players != update.OnlinePlayerCount)
{
PluginHelper.Instance.ProcessAlert(AlertType.OnlinePlayerCountChanged, this.ProfileSnapshot.ProfileName, $"{Config.Default.Alert_OnlinePlayerCountChange} {update.OnlinePlayerCount}");
}
this.Players = update.OnlinePlayerCount;
this.MaxPlayers = update.ServerInfo?.MaxPlayers ?? this.ProfileSnapshot.MaxPlayerCount;