Class AdsConfigManager

java.lang.Object
dev.oumaimaa.config.AdsConfigManager

public final class AdsConfigManager extends Object
Manages plugin configuration, providing type-safe access to settings and handling color code translation for messages. Optimizes performance by caching static messages.
  • Constructor Details

    • AdsConfigManager

      public AdsConfigManager(KawaiiAdPlugin plugin)
      Constructs the Configuration Manager.
      Parameters:
      plugin - The main plugin instance.
  • Method Details

    • setupConfig

      public void setupConfig()
    • getMessage

      public net.kyori.adventure.text.Component getMessage(String path, String @NotNull ... placeholders)
    • isReviewRequired

      public boolean isReviewRequired()
      Returns:
      true if manual review is required for all submitted ads.
    • isDebugEnabled

      public boolean isDebugEnabled()
    • getProfanityFilter

      @NotNull public @NotNull List<String> getProfanityFilter()
    • getMinLength

      public int getMinLength()
    • getMaxLength

      public int getMaxLength()
    • getBroadcastSound

      @NotNull public @NotNull net.kyori.adventure.sound.Sound getBroadcastSound()
    • getDefaultCooldown

      public long getDefaultCooldown()
    • getConfirmationTimeoutSeconds

      public long getConfirmationTimeoutSeconds()
    • getRankCooldowns

      public Map<String,Long> getRankCooldowns()
    • getCachedNoPermission

      public net.kyori.adventure.text.Component getCachedNoPermission()
    • getCachedCooldownBypass

      public net.kyori.adventure.text.Component getCachedCooldownBypass()
    • getCachedPreviewHeader

      public net.kyori.adventure.text.Component getCachedPreviewHeader()
    • getCachedPreviewFooter

      public net.kyori.adventure.text.Component getCachedPreviewFooter()
    • getCachedAdBroadcasted

      public net.kyori.adventure.text.Component getCachedAdBroadcasted()
    • getCachedAdCancelled

      public net.kyori.adventure.text.Component getCachedAdCancelled()
    • getCachedAdTimeout

      public net.kyori.adventure.text.Component getCachedAdTimeout()
    • getCachedAdAlreadyPending

      public net.kyori.adventure.text.Component getCachedAdAlreadyPending()
    • getCachedUsage

      public net.kyori.adventure.text.Component getCachedUsage()
    • getCachedAdPrefix

      public net.kyori.adventure.text.Component getCachedAdPrefix()
    • getCachedAdQueuedStaff

      public net.kyori.adventure.text.Component getCachedAdQueuedStaff()
    • getCachedAdQueuedPlayer

      public net.kyori.adventure.text.Component getCachedAdQueuedPlayer()
    • getConfig

      public org.bukkit.configuration.file.FileConfiguration getConfig()