public class PlayerQuitEvent extends PlayerEvent
Modifier and Type | Class | Description |
---|---|---|
static class |
PlayerQuitEvent.QuitReason |
Event.Result
player
Constructor | Description |
---|---|
PlayerQuitEvent(Player who,
String quitMessage) |
|
PlayerQuitEvent(Player who,
String quitMessage,
PlayerQuitEvent.QuitReason quitReason) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
String |
getQuitMessage() |
Gets the quit message to send to all online players
|
PlayerQuitEvent.QuitReason |
getReason() |
|
void |
setQuitMessage(String quitMessage) |
Sets the quit message to send to all online players
|
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
@Nullable public String getQuitMessage()
public void setQuitMessage(@Nullable String quitMessage)
quitMessage
- quit message@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
@NotNull public PlayerQuitEvent.QuitReason getReason()
Copyright © 2021. All rights reserved.