private static void MultipleFacebook(Member User) { if (!RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.MultipleFacebook)) { return; } string command = string.Empty; string reason = RuleManager.GetRuleText(AntiCheatRuleType.MultipleFacebook); command = AntiCheatSystemSQLHelper.BanAllSQL("FacebookName", reason, "FacebookName IS NOT NULL AND FacebookName <> ''"); TableHelper.ExecuteRawCommandNonQuery(command); }
private static void OtherDuplicateColumns() { string command = string.Empty; string reason = string.Empty; if (RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.SameRegisteredIPSameDay)) { reason = RuleManager.GetRuleText(AntiCheatRuleType.SameRegisteredIPSameDay); command = AntiCheatSystemSQLHelper.BanAllSQL("RegisteredWithIP, CONVERT(date, RegisterDate)", reason, "RegisteredWithIP IS NOT NULL AND RegisteredWithIP <> ''"); TableHelper.ExecuteRawCommandNonQuery(command); } if (RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.SameRegisteredIP)) { reason = RuleManager.GetRuleText(AntiCheatRuleType.SameRegisteredIP); command = AntiCheatSystemSQLHelper.BanAllSQL("RegisteredWithIP", reason, "RegisteredWithIP IS NOT NULL AND RegisteredWithIP <> ''"); TableHelper.ExecuteRawCommandNonQuery(command); } }