Feature: Setting to automatically restart server based on hours played (#11142)

This commit is contained in:
Tyler Trahan
2024-01-26 10:25:25 -05:00
committed by GitHub
parent 37fd69b604
commit 28716548d2
5 changed files with 75 additions and 25 deletions

View File

@@ -325,6 +325,7 @@ struct NetworkSettings {
uint8_t max_companies; ///< maximum amount of companies
uint8_t max_clients; ///< maximum amount of clients
TimerGameCalendar::Year restart_game_year; ///< year the server restarts
uint16_t restart_hours; ///< number of hours to run the server before automatic restart
uint8_t min_active_clients; ///< minimum amount of active clients to unpause the game
bool reload_cfg; ///< reload the config file before restarting
std::string last_joined; ///< Last joined server