diff --git a/src/main/java/com/me4502/precogs/detection/CommonDetectionTypes.java b/src/main/java/com/me4502/precogs/detection/CommonDetectionTypes.java index 378342b..d902332 100644 --- a/src/main/java/com/me4502/precogs/detection/CommonDetectionTypes.java +++ b/src/main/java/com/me4502/precogs/detection/CommonDetectionTypes.java @@ -54,6 +54,21 @@ public static List getDetectionTypesFor(Category category) { return ImmutableList.copyOf(DETECTION_TYPES_ARRAY.get(category)); } + /** + * Provides a {@link DetectionType} for the {@link Category}. + * + *

+ * This is built for AntiCheat plugins to provide via. If you are not + * an anticheat plugin please do not call this method. + *

+ * + * @param category The category. + * @param detectionType The detection type. + */ + public static void provideDetectionTypeFor(Category category, DetectionType detectionType) { + DETECTION_TYPES_ARRAY.get(category).add(detectionType); + } + /** * Provides a list of {@link DetectionType}s for the {@link Category}. *