add default anticheat detection types
This commit is contained in:
parent
e459b2fcde
commit
a38789adb9
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using static IW4MAdmin.Plugins.Stats.Cheat.Detection;
|
using static IW4MAdmin.Plugins.Stats.Cheat.Detection;
|
||||||
using static SharedLibraryCore.Server;
|
using static SharedLibraryCore.Server;
|
||||||
|
|
||||||
@ -10,7 +11,13 @@ namespace Stats.Config
|
|||||||
public bool Enable { get; set; }
|
public bool Enable { get; set; }
|
||||||
[Obsolete]
|
[Obsolete]
|
||||||
public IDictionary<long, DetectionType[]> ServerDetectionTypes { get; set; } = new Dictionary<long, DetectionType[]>();
|
public IDictionary<long, DetectionType[]> ServerDetectionTypes { get; set; } = new Dictionary<long, DetectionType[]>();
|
||||||
public IDictionary<Game, DetectionType[]> GameDetectionTypes { get; set; } = new Dictionary<Game, DetectionType[]>();
|
|
||||||
|
public IDictionary<Game, DetectionType[]> GameDetectionTypes { get; set; } =
|
||||||
|
new Dictionary<Game, DetectionType[]>()
|
||||||
|
{
|
||||||
|
{ Game.IW4, Enum.GetValues(typeof(DetectionType)).Cast<DetectionType>().ToArray() },
|
||||||
|
{ Game.T6, new[] { DetectionType.Offset, DetectionType.Snap, DetectionType.Strain } }
|
||||||
|
};
|
||||||
public IList<long> IgnoredClientIds { get; set; } = new List<long>();
|
public IList<long> IgnoredClientIds { get; set; } = new List<long>();
|
||||||
public IDictionary<Game, IDictionary<DetectionType, string[]>> IgnoredDetectionSpecification{ get; set; } = new Dictionary<Game, IDictionary<DetectionType, string[]>>
|
public IDictionary<Game, IDictionary<DetectionType, string[]>> IgnoredDetectionSpecification{ get; set; } = new Dictionary<Game, IDictionary<DetectionType, string[]>>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user