From 2e9ea370153ef974afef297626f1deba10b5185c Mon Sep 17 00:00:00 2001 From: Denis Arnst Date: Sun, 24 Jan 2021 12:19:46 +0100 Subject: [PATCH] Minor bugfix, where MinSteamLevel set to exactly 1, would not be recognized --- SteamChecks.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SteamChecks.cs b/SteamChecks.cs index 334dd6f..7a3651f 100644 --- a/SteamChecks.cs +++ b/SteamChecks.cs @@ -11,7 +11,7 @@ namespace Oxide.Plugins { - [Info("Steam Checks", "Sapd", "5.0.0")] + [Info("Steam Checks", "Sapd", "5.0.1")] [Description("Kick players depending on information on their Steam profile")] public class SteamChecks : CovalencePlugin { @@ -197,7 +197,7 @@ private void InitializeConfig() if (maxAccountCreationTime > 0) LogWarning(Lang("WarningPrivateProfileCreationTime")); - if (minSteamLevel > 1) + if (minSteamLevel > 0) LogWarning(Lang("WarningPrivateProfileSteamLevel")); } } @@ -405,7 +405,7 @@ private void CheckPlayer(string steamid, Action callback) } // Check Steam Level - if (minSteamLevel > 1) + if (minSteamLevel > 0) { GetSteamLevel(steamid, (steamLevelStatusCode, steamLevelResult) => {