Class PlayerJoinEvent


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

      • PlayerJoinEvent

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

      • 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
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()