public class PlayerQuitEvent extends PlayerEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerQuitEvent.QuitReason |
Event.Result
player
Constructor and Description |
---|
PlayerQuitEvent(@NotNull Player who,
net.kyori.adventure.text.Component quitMessage)
Deprecated.
|
PlayerQuitEvent(@NotNull Player who,
net.kyori.adventure.text.Component quitMessage,
@Nullable PlayerQuitEvent.QuitReason quitReason) |
PlayerQuitEvent(@NotNull Player who,
@Nullable String quitMessage)
Deprecated.
|
PlayerQuitEvent(@NotNull Player who,
@Nullable String quitMessage,
@Nullable PlayerQuitEvent.QuitReason quitReason)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable String |
getQuitMessage()
Deprecated.
in favour of
quitMessage() |
@NotNull PlayerQuitEvent.QuitReason |
getReason() |
net.kyori.adventure.text.Component |
quitMessage()
Gets the quit message to send to all online players
|
void |
quitMessage(net.kyori.adventure.text.Component quitMessage)
Sets the quit message to send to all online players
|
void |
setQuitMessage(@Nullable String quitMessage)
Deprecated.
in favour of
quitMessage(net.kyori.adventure.text.Component) |
getPlayer
callEvent, getEventName, isAsynchronous
@Deprecated public PlayerQuitEvent(@NotNull @NotNull Player who, @Nullable @Nullable String quitMessage)
@Deprecated public PlayerQuitEvent(@NotNull @NotNull Player who, @Nullable @Nullable String quitMessage, @Nullable @Nullable PlayerQuitEvent.QuitReason quitReason)
@Deprecated public PlayerQuitEvent(@NotNull @NotNull Player who, @Nullable net.kyori.adventure.text.Component quitMessage)
@Nullable public net.kyori.adventure.text.Component quitMessage()
public void quitMessage(@Nullable net.kyori.adventure.text.Component quitMessage)
quitMessage
- quit message@Nullable @Deprecated public @Nullable String getQuitMessage()
quitMessage()
@Deprecated public void setQuitMessage(@Nullable @Nullable String quitMessage)
quitMessage(net.kyori.adventure.text.Component)
quitMessage
- quit message@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
@NotNull public @NotNull PlayerQuitEvent.QuitReason getReason()
Copyright © 2021. All rights reserved.