Class PlayerLoadingFailedEvent
java.lang.Object
org.bukkit.event.Event
com.fren_gor.ultimateAdvancementAPI.events.PlayerLoadingFailedEvent
Called when a player loading fails.
Will always be called after the PlayerJoinEvent
for such player.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerLoadingFailedEvent
(@NotNull Player player, @Nullable Throwable cause) Creates a newPlayerLoadingFailedEvent
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCause()
Gets theThrowable
which caused the failure of the loading.static HandlerList
Gets the player who couldn't be loaded.int
hashCode()
boolean
Returns whether an exception is occurred.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerLoadingFailedEvent
public PlayerLoadingFailedEvent(@NotNull @NotNull Player player, @Nullable @Nullable Throwable cause) Creates a newPlayerLoadingFailedEvent
.- Parameters:
player
- The player who couldn't be loaded.cause
- TheThrowable
which caused of the failure of the loading, ornull
if no exception occurred.
-
-
Method Details
-
getPlayer
Gets the player who couldn't be loaded.- Returns:
- The player who couldn't be loaded.
-
getCause
Gets theThrowable
which caused the failure of the loading.- Returns:
- The
Throwable
which caused of the failure of the loading, ornull
if no exception occurred.
-
isExceptionOccurred
public boolean isExceptionOccurred()Returns whether an exception is occurred.- Returns:
- Whether an exception is occurred.
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
equals
-
hashCode
public int hashCode()
-