Class PlayerQuitEvent


public class PlayerQuitEvent extends PlayerEvent
Called when a player leaves a server
  • Constructor Details

    • PlayerQuitEvent

      public PlayerQuitEvent(@NotNull Player who, @Nullable String quitMessage)
  • Method Details

    • getQuitMessage

      @Nullable public String getQuitMessage()
      Gets the quit message to send to all online players
      Returns:
      string quit message
    • setQuitMessage

      public void setQuitMessage(@Nullable String quitMessage)
      Sets the quit message to send to all online players
      Parameters:
      quitMessage - quit message
    • getHandlers

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

      @NotNull public static HandlerList getHandlerList()