Interface Registration

All Known Subinterfaces:
CapabilityRegistration

public interface Registration
Something an addon registered with Zentrix, and the way to take it back.

Every registration belongs to the plugin that made it and ends on its own when that plugin is disabled, so an addon that forgets to unregister cannot leave stale code running inside Zentrix. Unregistering twice is harmless.

Since:
1.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the registration is still in effect.
    @NotNull org.bukkit.plugin.Plugin
    The plugin that made the registration.
    boolean
    Ends the registration.
  • Method Details

    • owner

      @NotNull @NotNull org.bukkit.plugin.Plugin owner()
      The plugin that made the registration.
    • isActive

      boolean isActive()
      Whether the registration is still in effect.
    • unregister

      boolean unregister()
      Ends the registration.
      Returns:
      true when this call ended it