Package dev.oumaimaa.kawaiiapi
Class KawaiiAPI
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
dev.oumaimaa.kawaiiapi.KawaiiAPI
- 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 KawaiiAPI
extends org.bukkit.plugin.java.JavaPlugin
KawaiiAPI - Modern, high-performance framework for Paper plugins.
This API provides comprehensive utilities for:
- Command management with subcommand support
- Menu systems (standard and paginated)
- Configuration management (JSON/YAML)
- Text formatting with Adventure components
- Custom player skulls without NMS
- Region management and visualization
- Chat input handling
- Version:
- 1.0
- Author:
- KawaiiDevelopment
-
Constructor Summary
Constructors -
Method Summary
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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode, namespaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
KawaiiAPI
public KawaiiAPI()
-
-
Method Details
-
getInstance
Retrieves the singleton instance of KawaiiAPI.- Returns:
- The plugin instance, or null if not loaded
- Throws:
IllegalStateException- if called before plugin initialization
-
isLoaded
public static boolean isLoaded()Checks if KawaiiAPI is currently loaded and enabled.- Returns:
- true if the plugin is loaded and enabled
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-