Package org.bukkit.event.player
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, String joinMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
String
getJoinMessage()
Gets the join message to send to all online playersvoid
setJoinMessage(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
-
-
-
-
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
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-