mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Added new discord plugin alert - online player count change.
This commit is contained in:
parent
c7da511d1e
commit
c2374f3106
15 changed files with 89 additions and 10 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue