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
ConstructorDescriptionConfigsLoadEvent
(@Nullable CommandSender initiator, long time, boolean isStartup) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
@Nullable CommandSender
Returns the initiator of the load event.long
getTime()
Returns the time it took to load the configurations from 0 to complete in milliseconds.boolean
Returns 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
-
-
Method Details
-
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
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
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-