public class PlayerJoinEvent extends PlayerEvent
Event.Resultplayer| Constructor and Description |
|---|
PlayerJoinEvent(@NotNull Player playerJoined,
net.kyori.adventure.text.Component joinMessage) |
PlayerJoinEvent(@NotNull Player playerJoined,
@Nullable String joinMessage)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable String |
getJoinMessage()
Deprecated.
in favour of
joinMessage() |
net.kyori.adventure.text.Component |
joinMessage()
Gets the join message to send to all online players
|
void |
joinMessage(net.kyori.adventure.text.Component joinMessage)
Sets the join message to send to all online players
|
void |
setJoinMessage(@Nullable String joinMessage)
Deprecated.
in favour of
joinMessage(net.kyori.adventure.text.Component) |
getPlayercallEvent, getEventName, isAsynchronouspublic PlayerJoinEvent(@NotNull @NotNull Player playerJoined, @Nullable net.kyori.adventure.text.Component joinMessage)
@Nullable public net.kyori.adventure.text.Component joinMessage()
public void joinMessage(@Nullable net.kyori.adventure.text.Component joinMessage)
joinMessage - join message. If null, no message will be sent@Nullable @Deprecated public @Nullable String getJoinMessage()
joinMessage()@Deprecated public void setJoinMessage(@Nullable @Nullable String joinMessage)
joinMessage(net.kyori.adventure.text.Component)joinMessage - join message. If null, no message will be sent@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.