Package dev.oumaimaa

Class KawaiiAdPlugin

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
dev.oumaimaa.KawaiiAdPlugin
All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, net.kyori.adventure.key.Namespaced, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public final class KawaiiAdPlugin extends org.bukkit.plugin.java.JavaPlugin
Main class for the KawaiiAD Plugin. Handles plugin lifecycle, configuration loading, and stores ephemeral data like pending ads.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the configuration manager instance.
    Retrieves the cooldown manager instance.
    Retrieves the database manager instance.
    Retrieves the map of players with pending ad confirmations.
    void
     
    void
     

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, registerCommand, registerCommand, registerCommand, registerCommand, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode, namespace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
  • Constructor Details

    • KawaiiAdPlugin

      public KawaiiAdPlugin()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getDatabaseManager

      public DatabaseManager getDatabaseManager()
      Retrieves the database manager instance.
      Returns:
      The DatabaseManager instance.
    • getPendingAds

      public Map<UUID,String> getPendingAds()
      Retrieves the map of players with pending ad confirmations.
      Returns:
      The map of pending ads.
    • getAdsConfigManager

      public AdsConfigManager getAdsConfigManager()
      Retrieves the configuration manager instance.
      Returns:
      The AdsConfigManager instance.
    • getCooldownManager

      public CooldownManager getCooldownManager()
      Retrieves the cooldown manager instance.
      Returns:
      The CooldownManager instance.