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 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
ConstructorDescriptionPlayerJoinEvent(@NotNull Player playerJoined, @Nullable String joinMessage)
Deprecated.PlayerJoinEvent(@NotNull Player playerJoined, Component joinMessage)
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Deprecated.Gets the join message to send to all online playersvoid
joinMessage(Component joinMessage)
Sets the join message to send to all online playersvoid
setJoinMessage(@Nullable String joinMessage)
Deprecated.in favour ofjoinMessage(net.kyori.adventure.text.Component)
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
joinMessage
Gets the join message to send to all online players- Returns:
- string join message. Can be null
-
joinMessage
Sets the join message to send to all online players- Parameters:
joinMessage
- join message. If null, no message will be sent
-
getJoinMessage
Deprecated.in favour ofjoinMessage()
Gets the join message to send to all online players- Returns:
- string join message. Can be null
-
setJoinMessage
Deprecated.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:
getHandlers
in classEvent
-
getHandlerList
-
joinMessage()