mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server Monitor Changes
- implemented the sequential server processing.
This commit is contained in:
parent
1d6907a471
commit
27c762cefb
6 changed files with 274 additions and 82 deletions
|
|
@ -438,17 +438,20 @@ namespace ServerManagerTool.Lib
|
|||
SendMessage(ShutdownReason, cancellationToken);
|
||||
}
|
||||
|
||||
LogProfileMessage("Starting shutdown timer...");
|
||||
|
||||
var minutesLeft = ShutdownInterval;
|
||||
if (ServerProcess == ServerProcessType.Stop)
|
||||
{
|
||||
LogProfileMessage($"Server shutdown type is {ServerProcess}, shutdown timer cancelled.");
|
||||
LogProfileMessage($"Server shutdown type is {ServerProcess}, shutdown timer will be skipped.");
|
||||
minutesLeft = 0;
|
||||
}
|
||||
else if (!CheckForOnlinePlayers)
|
||||
else
|
||||
{
|
||||
LogProfileMessage("CheckForOnlinePlayers disabled, shutdown timer will not perform online player check.");
|
||||
LogProfileMessage("Starting shutdown timer...");
|
||||
|
||||
if (!CheckForOnlinePlayers)
|
||||
{
|
||||
LogProfileMessage("CheckForOnlinePlayers disabled, shutdown timer will not perform online player check.");
|
||||
}
|
||||
}
|
||||
|
||||
while (minutesLeft > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue