Interface ExternalModerationService
public interface ExternalModerationService
Caches external moderation reports from other plugins for a player
- Since:
- 1.13.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordKey identifying one player and one external moderation type -
Method Summary
Modifier and TypeMethodDescriptionget(FPlayer fPlayer, Moderation.Type type) The external moderation for a player, from cache when possiblevoidinvalidate(UUID uuid, Moderation.Type type) Invalidate cached answer for one player and moderation type, so the next question reaches the integration againvoidInvalidate every cached answerbooleanisPresent(FPlayer fPlayer, Moderation.Type type) Whether an integration reports this moderation type for this player, from cache when possible
-
Method Details
-
get
The external moderation for a player, from cache when possible- Parameters:
fPlayer- the playertype- the moderation type- Returns:
- the moderation, or empty if no integration reports one
-
isPresent
Whether an integration reports this moderation type for this player, from cache when possible- Parameters:
fPlayer- the playertype- the moderation type- Returns:
- true if an external moderation applies
-
invalidate
Invalidate cached answer for one player and moderation type, so the next question reaches the integration again- Parameters:
uuid- the playertype- the moderation type
-
invalidateAll
void invalidateAll()Invalidate every cached answer
-