public class PlayerJoinEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerJoinEvent(@NotNull Player playerJoined,
@Nullable String joinMessage) |
Modifier and Type | Method | Description |
---|---|---|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@Nullable String |
getJoinMessage() |
Gets the join message to send to all online players
|
void |
setJoinMessage(@Nullable String joinMessage) |
Sets the join message to send to all online players
|
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
@Nullable public @Nullable String getJoinMessage()
public void setJoinMessage(@Nullable @Nullable String joinMessage)
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 © 2020. All rights reserved.