Class PreLoginEvent

All Implemented Interfaces:
Cancellable

public class PreLoginEvent extends AsyncEvent<PreLoginEvent> implements Cancellable
Event called to represent a player first making their presence and username known. This will NOT contain many attributes relating to the player which are filled in after authentication with Mojang's servers. Examples of attributes which are not available include their UUID.
  • Constructor Details

  • Method Details

    • getCancelReason

      @Deprecated public String getCancelReason()
      Deprecated.
      use component methods instead
      Returns:
      reason to be displayed
    • setCancelReason

      @Deprecated public void setCancelReason(String cancelReason)
      Deprecated.
      Use component methods instead
      Parameters:
      cancelReason - reason to be displayed
    • getCancelReasonComponents

      @Deprecated public BaseComponent[] getCancelReasonComponents()
      Deprecated.
      use single component methods instead
      Returns:
      reason to be displayed
    • setCancelReason

      @Deprecated public void setCancelReason(BaseComponent... cancelReason)
      Deprecated.
      use single component methods instead
      Parameters:
      cancelReason - reason to be displayed