adjust night timeframe and increase player threshold due to autism bots
This commit is contained in:
parent
72bea7dffc
commit
862c3b4d67
@ -21,7 +21,7 @@ public Plugin myinfo =
|
|||||||
name = "RestartManager",
|
name = "RestartManager",
|
||||||
author = "Dogan + Neon",
|
author = "Dogan + Neon",
|
||||||
description = "Display Server Uptime and do controlled Restarts",
|
description = "Display Server Uptime and do controlled Restarts",
|
||||||
version = "2.0.0",
|
version = "2.0.1",
|
||||||
url = ""
|
url = ""
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ public Action CheckForRestart(Handle timer)
|
|||||||
iPlayers--;
|
iPlayers--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((iPlayers <= 1) && IsItTimeToRestartNight())
|
if((iPlayers <= 5) && IsItTimeToRestartNight())
|
||||||
{
|
{
|
||||||
PrepareRestartNight();
|
PrepareRestartNight();
|
||||||
return Plugin_Stop;
|
return Plugin_Stop;
|
||||||
@ -215,7 +215,7 @@ stock bool IsItTimeToRestartNight()
|
|||||||
|
|
||||||
iHour = StringToInt(sTime[0]);
|
iHour = StringToInt(sTime[0]);
|
||||||
|
|
||||||
if (iHour >= 3 && iHour < 8)
|
if (iHour >= 3 && iHour < 6)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user