Package dev.itsharshxd.zentrix.api.addon
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 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
-