Bump up time

This commit is contained in:
Jackz 2023-12-20 18:08:54 -06:00
parent 693e0761e7
commit efaf49bd29
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -36,7 +36,7 @@ public void OnPluginStart() {
RegAdminCmd("sm_request_restart", Command_RequestRestart, ADMFLAG_GENERIC); RegAdminCmd("sm_request_restart", Command_RequestRestart, ADMFLAG_GENERIC);
RegAdminCmd("sm_ar_status", Command_Status, ADMFLAG_GENERIC); RegAdminCmd("sm_ar_status", Command_Status, ADMFLAG_GENERIC);
CreateTimer(600.0, Timer_Check, _, TIMER_REPEAT); CreateTimer(780.0, Timer_Check, _, TIMER_REPEAT);
} }
Action Command_Status(int client, int args) { Action Command_Status(int client, int args) {
@ -76,7 +76,7 @@ public Action Timer_Check(Handle h) {
pendingRestart = true; pendingRestart = true;
cvar_hibernateWhenEmpty.BoolValue = false; cvar_hibernateWhenEmpty.BoolValue = false;
if(IsServerEmpty()) { if(IsServerEmpty()) {
if(++triesEmpty > 4) { if(++triesEmpty >= 4) {
LogAction(0, -1, "Server has passed max online time threshold and is empty after %d tries, restarting now", triesEmpty); LogAction(0, -1, "Server has passed max online time threshold and is empty after %d tries, restarting now", triesEmpty);
ServerCommand("quit"); ServerCommand("quit");
} }