From 862c3b4d67f62923242f95c163d9d00598a727da Mon Sep 17 00:00:00 2001 From: neon Date: Sun, 29 May 2022 14:16:22 +0100 Subject: [PATCH] adjust night timeframe and increase player threshold due to autism bots --- RestartManager/scripting/RestartManager.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RestartManager/scripting/RestartManager.sp b/RestartManager/scripting/RestartManager.sp index b433f8ad..3161bbb8 100644 --- a/RestartManager/scripting/RestartManager.sp +++ b/RestartManager/scripting/RestartManager.sp @@ -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;