Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api plugin
com.phoenixplugins.sdk.api.plugin

Interface Plugin

  • All Superinterfaces:
    LifecycleObject


    public interface Plugin
    extends LifecycleObject
    Represents a PhoenixPlugin that provides access to an EventBus. This allows plugins to manage events dynamically.
    • Method Detail

      • getPlatform

        Platform getPlatform()
        Gets the underlying platform the proxy or plugin is running on.
        Returns:
        the Platform instance, such as Spigot, Velocity, or BungeeCord
      • getLogger

        Logger getLogger()
        Gets the logger associated with this instance for logging messages.
        Returns:
        the Logger instance
      • getScheduler

        Scheduler getScheduler()
        Gets the scheduler associated with this plugin for managing tasks.
        Returns:
        the Scheduler instance
      • getEventBus

        @NotNull
        @NotNull EventBus getEventBus()
        Retrieves the EventBus instance associated with this plugin. The EventBus is responsible for handling event subscriptions and triggers.
        Returns:
        The EventBus instance.
      • getCommandManager

        @NotNull
        @NotNull CommandManager getCommandManager()
        Gets the command registry responsible for managing commands.
        Returns:
        the CommandManager instance
      • getAddonRegistry

        @NotNull
        @NotNull AddonRegistry getAddonRegistry()
        Retrieves the AddonRegistry for this plugin. The AddonRegistry is responsible for managing plugin addons dynamically. It allows for loading and unloading addons as needed.
        Returns:
        The AddonsRegistry instance.
      • getExtensionRegistry

        @NotNull
        @NotNull ExtensionRegistry getExtensionRegistry()
        Retrieves the ExtensionRegistry for this plugin. The ExtensionRegistry is responsible for managing plugin addons dynamically. It allows for loading and unloading addons as needed.
        Returns:
        The AddonsRegistry instance.
      • getHookRegistry

        @NotNull
        @NotNull HookRegistry getHookRegistry()
        Retrieves the HookRegistry for this plugin. The HookRegistry is responsible for handling integrations with external plugins and services. It allows registering and unregistering hooks dynamically.
        Returns:
        The HooksManager instance.
      • getTranslationsProvider

        @NotNull
        @NotNull TranslationsProvider getTranslationsProvider()
        Retrieves the TranslationsProvider for this plugin. TranslationsProvider is responsible for providing translations for different locales and manages language resources.
        Returns:
        The TranslationsProvider instance
      • getName

        String getName()
        Retrieves the plugin name
        Returns:
        The Plugin name.
      • getDescription

        PluginDescription getDescription()
        Retrieves the plugin description
        Returns:
        The Plugin description.
      • getDataFolder

        File getDataFolder()
        Gets the data folder associated with this plugin or proxy component.
        Returns:
        the File representing the data folder
      • getResource

        InputStream getResource(String resourceName)
        Retrieves a resource as an input stream.
        Parameters:
        resourceName - the name of the resource to retrieve
        Returns:
        an InputStream for the resource, or null if not found
      • isEnabled

        boolean isEnabled()
Last updated about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more