Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ public static List<DetectionType> getDetectionTypesFor(Category category) {
return ImmutableList.copyOf(DETECTION_TYPES_ARRAY.get(category));
}

/**
* Provides a {@link DetectionType} for the {@link Category}.
*
* <p>
* This is built for AntiCheat plugins to provide via. If you are not
* an anticheat plugin please do not call this method.
* </p>
*
* @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}.
*
Expand Down