mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
Lets hard limit block protection save to 30 days max
This commit is contained in:
parent
75d80d0582
commit
a2668474f4
@ -823,8 +823,9 @@ public class GeneralConfigManager {
|
|||||||
|
|
||||||
c.addComment("ExploitProtections.General.KeepDataFor",
|
c.addComment("ExploitProtections.General.KeepDataFor",
|
||||||
"For how long in days to keep block protection data in data base", "This will clean block data which ones have -1 as cooldown value",
|
"For how long in days to keep block protection data in data base", "This will clean block data which ones have -1 as cooldown value",
|
||||||
"Data base cleanup will be performed on each server startup");
|
"Data base cleanup will be performed on each server startup", "This cant be more then 30 days");
|
||||||
BlockProtectionDays = c.get("ExploitProtections.General.KeepDataFor", 14);
|
BlockProtectionDays = c.get("ExploitProtections.General.KeepDataFor", 14);
|
||||||
|
BlockProtectionDays = BlockProtectionDays > 30 ? 30 : BlockProtectionDays;
|
||||||
|
|
||||||
c.addComment("ExploitProtections.General.GlobalBlockTimer", "All blocks will be protected X sec after player places it on ground.");
|
c.addComment("ExploitProtections.General.GlobalBlockTimer", "All blocks will be protected X sec after player places it on ground.");
|
||||||
useGlobalTimer = c.get("ExploitProtections.General.GlobalBlockTimer.use", true);
|
useGlobalTimer = c.get("ExploitProtections.General.GlobalBlockTimer.use", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user