Interface ExternalModerationService


public interface ExternalModerationService
Caches external moderation reports from other plugins for a player
Since:
1.13.0
  • Method Details

    • get

      The external moderation for a player, from cache when possible
      Parameters:
      fPlayer - the player
      type - the moderation type
      Returns:
      the moderation, or empty if no integration reports one
    • isPresent

      boolean isPresent(FPlayer fPlayer, Moderation.Type type)
      Whether an integration reports this moderation type for this player, from cache when possible
      Parameters:
      fPlayer - the player
      type - the moderation type
      Returns:
      true if an external moderation applies
    • invalidate

      void invalidate(UUID uuid, Moderation.Type type)
      Invalidate cached answer for one player and moderation type, so the next question reaches the integration again
      Parameters:
      uuid - the player
      type - the moderation type
    • invalidateAll

      void invalidateAll()
      Invalidate every cached answer