mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 20:13:21 +00:00
Bump up time
This commit is contained in:
parent
693e0761e7
commit
efaf49bd29
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue