Package dev.oumaimaa.config
Class AdsConfigManager
java.lang.Object
dev.oumaimaa.config.AdsConfigManager
Manages plugin configuration, providing type-safe access to settings
and handling color code translation for messages. Optimizes performance by caching static messages.
-
Constructor Summary
ConstructorsConstructorDescriptionAdsConfigManager(KawaiiAdPlugin plugin) Constructs the Configuration Manager. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.sound.Soundnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentnet.kyori.adventure.text.Componentorg.bukkit.configuration.file.FileConfigurationlonglongintnet.kyori.adventure.text.ComponentgetMessage(String path, String @NotNull ... placeholders) intbooleanbooleanvoid
-
Constructor Details
-
AdsConfigManager
Constructs the Configuration Manager.- Parameters:
plugin- The main plugin instance.
-
-
Method Details
-
setupConfig
public void setupConfig() -
getMessage
-
isReviewRequired
public boolean isReviewRequired()- Returns:
- true if manual review is required for all submitted ads.
-
isDebugEnabled
public boolean isDebugEnabled() -
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
-
getCachedNoPermission
public net.kyori.adventure.text.Component getCachedNoPermission() -
getCachedCooldownBypass
public net.kyori.adventure.text.Component getCachedCooldownBypass() -
getCachedPreviewHeader
public net.kyori.adventure.text.Component getCachedPreviewHeader() -
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()
-