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

View File

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

View File

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