Class PlayerJoinEvent


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

      • PlayerJoinEvent

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

      • getJoinMessage

        @NotNull
        public String getJoinMessage()
        Gets the join message to send to all online players
        Returns:
        string join message
      • setJoinMessage

        public void setJoinMessage​(@NotNull
                                   String joinMessage)
        Sets the join message to send to all online players
        Parameters:
        joinMessage - join message
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()