Class ZentrixReadyEvent

java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.lifecycle.ZentrixReadyEvent

public final class ZentrixReadyEvent extends ZentrixEvent
Called once Zentrix has finished starting: arenas are loaded and saved custom games restored.

Addons that depend on Zentrix are enabled after this has fired and can read PlatformService#getLifecycleState() instead. The event is for plugins that start earlier, such as ones that only softdepend on Zentrix.

Since:
1.8.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    ZentrixReadyEvent(@NotNull String apiVersion)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    The API version the started Zentrix implements.
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
    Gets the handler list for this event.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZentrixReadyEvent

      public ZentrixReadyEvent(@NotNull @NotNull String apiVersion)
  • Method Details

    • getApiVersion

      @NotNull public @NotNull String getApiVersion()
      The API version the started Zentrix implements.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()