Skip to content

Commit

Permalink
feat: better method for restarting server
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXTQ committed Dec 10, 2024
1 parent 6c308d6 commit 05a3b58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DiscordLab.Bot/API/Modules/UpdateStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public static async Task GetStatus()

if (restartServer)
{
Server.ExecuteCommand("rnr");
ServerStatic.StopNextRound = ServerStatic.NextRoundAction.Restart;
Log.Info("Server will restart next round for updates.");
}
}
}
Expand Down

0 comments on commit 05a3b58

Please sign in to comment.