Class ConfigsLoadEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.ConfigsLoadEvent

public class ConfigsLoadEvent extends Event
Called when the configurations of the plugin got loaded.

This always gets called after the plugin started or when someone performed a reload.
Do NOT use this as an alternative for BedwarsAPI.onReady(Runnable).

  • Constructor Details Link icon

    • ConfigsLoadEvent Link icon

      public ConfigsLoadEvent(@Nullable @Nullable CommandSender initiator, long time, boolean isStartup)
  • Method Details Link icon

    • getInitiator Link icon

      @Nullable public @Nullable CommandSender getInitiator()
      Returns the initiator of the load event.

      It may be null when it was started programmatically.

      Returns:
      The sender that initiated the loading
    • getTime Link icon

      public long getTime()
      Returns the time it took to load the configurations from 0 to complete in milliseconds.
      Returns:
      Returns the time it took to load the configs in milliseconds.
    • isStartup Link icon

      public boolean isStartup()
      Returns whether this event is being executed for the first time due to the loading that occured with starting up the plugin.
      Returns:
      true when it got called because the plugin finished loading all configs during the start up sequence
    • getHandlers Link icon

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList Link icon

      public static HandlerList getHandlerList()