Class PlayerJoinEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerJoinEvent

public class PlayerJoinEvent
extends PlayerEvent
Called when a player joins a server
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    Event.Result
  • Field Summary

    Fields inherited from class org.bukkit.event.player.PlayerEvent

    player
  • Constructor Summary

    Constructors 
    Constructor Description
    PlayerJoinEvent​(Player playerJoined, java.lang.String joinMessage)  
  • Method Summary

    Modifier and Type Method Description
    static HandlerList getHandlerList()  
    HandlerList getHandlers()  
    java.lang.String getJoinMessage()
    Gets the join message to send to all online players
    void setJoinMessage​(java.lang.String joinMessage)
    Sets the join message to send to all online players

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getJoinMessage

      public java.lang.String getJoinMessage()
      Gets the join message to send to all online players
      Returns:
      string join message
    • setJoinMessage

      public void setJoinMessage​(java.lang.String joinMessage)
      Sets the join message to send to all online players
      Parameters:
      joinMessage - join message
    • getHandlers

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

      public static HandlerList getHandlerList()