Class PlayerJoinEvent


public class PlayerJoinEvent extends PlayerEvent
Called when a player joins a server
  • Constructor Details

    • PlayerJoinEvent

      public PlayerJoinEvent(@NotNull Player playerJoined, @Nullable String joinMessage)
  • Method Details

    • getJoinMessage

      @Nullable public String getJoinMessage()
      Gets the join message to send to all online players
      Returns:
      string join message. Can be null
    • setJoinMessage

      public void setJoinMessage(@Nullable String joinMessage)
      Sets the join message to send to all online players
      Parameters:
      joinMessage - join message. If null, no message will be sent
    • getHandlers

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

      @NotNull public static HandlerList getHandlerList()