Class PlayerJoinEvent


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

    • PlayerJoinEvent Link icon

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

    • getJoinMessage Link icon

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

      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 Link icon

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

      @NotNull public static HandlerList getHandlerList()