Interface AddonManager.AddonInfo

Enclosing interface:
AddonManager

public static interface AddonManager.AddonInfo
Represents information about a registered addon.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Collection<String>
    Gets the addon's authors.
    @NotNull String
    Gets the addon's description.
    @NotNull String
    Gets the addon's unique identifier.
    @NotNull String
    Gets the addon's display name.
    @NotNull org.bukkit.plugin.Plugin
    Gets the underlying Bukkit plugin instance.
    @NotNull String
    Gets the addon's version.
    boolean
    Checks if the addon is currently enabled.
  • Method Details

    • getId

      @NotNull @NotNull String getId()
      Gets the addon's unique identifier.

      This is typically the plugin name in lowercase.

      Returns:
      The addon ID (never null)
    • getName

      @NotNull @NotNull String getName()
      Gets the addon's display name.
      Returns:
      The addon name (never null)
    • getVersion

      @NotNull @NotNull String getVersion()
      Gets the addon's version.
      Returns:
      The version string (never null)
    • getDescription

      @NotNull @NotNull String getDescription()
      Gets the addon's description.
      Returns:
      The description, or empty string if none
    • getAuthors

      @NotNull @NotNull Collection<String> getAuthors()
      Gets the addon's authors.
      Returns:
      An unmodifiable list of author names (never null, may be empty)
    • getPlugin

      @NotNull @NotNull org.bukkit.plugin.Plugin getPlugin()
      Gets the underlying Bukkit plugin instance.
      Returns:
      The plugin instance (never null)
    • isEnabled

      boolean isEnabled()
      Checks if the addon is currently enabled.
      Returns:
      true if the addon is enabled