Package de.marcely.bedwars.api.event
Class ConfigsLoadEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.ConfigsLoadEvent
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionConfigsLoadEvent(@Nullable CommandSender initiator, Duration time, boolean isStartup) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList@Nullable CommandSenderReturns the initiator of the load event.getTime()Returns the time it took to load the configurations from 0 to complete in milliseconds.booleanReturns whether this event is being executed for the first time due to the loading that occured with starting up the plugin.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ConfigsLoadEvent
public ConfigsLoadEvent(@Nullable @Nullable CommandSender initiator, Duration time, boolean isStartup)
-
-
Method Details
-
getInitiator
Returns the initiator of the load event.It may be
nullwhen it was started programmatically.- Returns:
- The sender that initiated the loading
-
getTime
Returns the time it took to load the configurations from 0 to complete in milliseconds.- Returns:
- Returns the duration it took to load the configs in milliseconds.
-
isStartup
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:
truewhen it got called because the plugin finished loading all configs during the start up sequence
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-