adjust night timeframe and increase player threshold due to autism bots

This commit is contained in:
neon 2022-05-29 14:16:22 +01:00
parent 72bea7dffc
commit 862c3b4d67

View File

@ -21,7 +21,7 @@ public Plugin myinfo =
name = "RestartManager",
author = "Dogan + Neon",
description = "Display Server Uptime and do controlled Restarts",
version = "2.0.0",
version = "2.0.1",
url = ""
};
@ -187,7 +187,7 @@ public Action CheckForRestart(Handle timer)
iPlayers--;
}
if((iPlayers <= 1) && IsItTimeToRestartNight())
if((iPlayers <= 5) && IsItTimeToRestartNight())
{
PrepareRestartNight();
return Plugin_Stop;
@ -215,7 +215,7 @@ stock bool IsItTimeToRestartNight()
iHour = StringToInt(sTime[0]);
if (iHour >= 3 && iHour < 8)
if (iHour >= 3 && iHour < 6)
return true;
return false;