Class PlayerLoadingFailedEvent

java.lang.Object
org.bukkit.event.Event
com.fren_gor.ultimateAdvancementAPI.events.PlayerLoadingFailedEvent

public final class PlayerLoadingFailedEvent extends Event
Called when a player loading fails.

Will always be called after the PlayerJoinEvent for such player.

  • Constructor Details

    • PlayerLoadingFailedEvent

      public PlayerLoadingFailedEvent(@NotNull @NotNull Player player, @Nullable @Nullable Throwable cause)
      Creates a new PlayerLoadingFailedEvent.
      Parameters:
      player - The player who couldn't be loaded.
      cause - The Throwable which caused of the failure of the loading, or null if no exception occurred.
  • Method Details

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Gets the player who couldn't be loaded.
      Returns:
      The player who couldn't be loaded.
    • getCause

      @Nullable public @Nullable Throwable getCause()
      Gets the Throwable which caused the failure of the loading.
      Returns:
      The Throwable which caused of the failure of the loading, or null if no exception occurred.
    • isExceptionOccurred

      public boolean isExceptionOccurred()
      Returns whether an exception is occurred.
      Returns:
      Whether an exception is occurred.
    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object