Package org.bukkit.event.player
Class PlayerJoinEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerJoinEvent
Called when a player joins a server
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerJoinEvent(@NotNull Player playerJoined, @Nullable String joinMessage) Deprecated.PlayerJoinEvent(@NotNull Player playerJoined, Component joinMessage) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic @NotNull HandlerListDeprecated.Gets the join message to send to all online playersvoidjoinMessage(@Nullable Component joinMessage) Sets the join message to send to all online playersvoidsetJoinMessage(@Nullable String joinMessage) Deprecated.in favour ofjoinMessage(net.kyori.adventure.text.Component)Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details
- 
Method Details- 
joinMessageGets the join message to send to all online players- Returns:
- string join message. Can be null
 
- 
joinMessageSets the join message to send to all online players- Parameters:
- joinMessage- join message. If null, no message will be sent
 
- 
getJoinMessageDeprecated.in favour ofjoinMessage()Gets the join message to send to all online players- Returns:
- string join message. Can be null
 
- 
setJoinMessageDeprecated.in favour ofjoinMessage(net.kyori.adventure.text.Component)Sets the join message to send to all online players- Parameters:
- joinMessage- join message. If null, no message will be sent
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
- 
joinMessage()