This commit is contained in:
GenZmeY 2022-08-18 16:05:09 +03:00
parent d57de66d7d
commit 28a8b0d4ff
3 changed files with 12 additions and 9 deletions

View File

@ -72,7 +72,7 @@ public static function Load(E_LogLevel LogLevel)
if (default.CheckGroupTimer < 0) if (default.CheckGroupTimer < 0)
{ {
`Log_Error("CheckGroupTimer" @ "(" $ default.CheckGroupTimer $ ")" @ "must be equal or greater than 0"); `Log_Error("CheckGroupTimer" @ "(" $ default.CheckGroupTimer $ ")" @ "must be equal or greater than 0");
default.CheckGroupTimer = 10; default.CheckGroupTimer = 0;
} }
if (!IsValidHexColor(default.HexColorOwner, LogLevel)) if (!IsValidHexColor(default.HexColorOwner, LogLevel))
@ -118,7 +118,7 @@ private static function ApplyDefault(E_LogLevel LogLevel)
default.HexColorPlayer = "FFFFFF"; default.HexColorPlayer = "FFFFFF";
default.HexColorLeave = "FF0000"; default.HexColorLeave = "FF0000";
default.CheckGroupTimer = 10; default.CheckGroupTimer = 0;
} }
private static function bool IsValidHexColor(String HexColor, E_LogLevel LogLevel) private static function bool IsValidHexColor(String HexColor, E_LogLevel LogLevel)

View File

@ -361,11 +361,14 @@ public function NotifyLogin(Controller C)
IncreaseXPBoost(RepInfo.GetKFPC()); IncreaseXPBoost(RepInfo.GetKFPC());
} }
if (CfgLevels.static.MinLevel() != 0 || CfgLevels.static.MaxLevel() != `MAX_PERK_LEVEL)
{
RepInfo.WriteToChatLocalized( RepInfo.WriteToChatLocalized(
MSKGS_AllowedLevels, MSKGS_AllowedLevels,
CfgLevels.default.HexColorInfo, CfgLevels.default.HexColorInfo,
String(CfgLevels.static.MinLevel()), String(CfgLevels.static.MinLevel()),
String(CfgLevels.static.MaxLevel())); String(CfgLevels.static.MaxLevel()));
}
} }
public function NotifyLogout(Controller C) public function NotifyLogout(Controller C)

View File

@ -16,7 +16,7 @@ PackageBuildOrder="MSKGS MSKGS-SRV"
# Mutators that will be uploaded to the workshop # Mutators that will be uploaded to the workshop
# Specify them with a space as a separator, # Specify them with a space as a separator,
# The order doesn't matter # The order doesn't matter
PackageUpload="MSKGS" PackageUpload="MSKGS MSKGS-SRV"
### Test parameters ### ### Test parameters ###
@ -30,7 +30,7 @@ Map="KF-AnimeDance"
# Endless: KFGameContent.KFGameInfo_Endless # Endless: KFGameContent.KFGameInfo_Endless
# Objective: KFGameContent.KFGameInfo_Objective # Objective: KFGameContent.KFGameInfo_Objective
# Versus: KFGameContent.KFGameInfo_VersusSurvival # Versus: KFGameContent.KFGameInfo_VersusSurvival
Game="MSKGS-SRV.MSKGS_GM_Survival" Game="MSKGS.MSKGS_Survival"
# Difficulty: # Difficulty:
# Normal: 0 # Normal: 0