Package org.bukkit.event.player
Class PlayerQuitEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerQuitEvent
Called when a player leaves 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
ConstructorDescriptionPlayerQuitEvent(@NotNull Player who, @Nullable String quitMessage)
Deprecated.PlayerQuitEvent(@NotNull Player who, @Nullable String quitMessage, @Nullable PlayerQuitEvent.QuitReason quitReason)
Deprecated.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)
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Deprecated.net.kyori.adventure.text.Component
Gets the quit message to send to all online playersvoid
quitMessage(net.kyori.adventure.text.Component quitMessage)
Sets the quit message to send to all online playersvoid
setQuitMessage(@Nullable String quitMessage)
Deprecated.in favour ofquitMessage(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
-
PlayerQuitEvent
@Deprecated public PlayerQuitEvent(@NotNull @NotNull Player who, @Nullable @Nullable String quitMessage)Deprecated. -
PlayerQuitEvent
@Deprecated public PlayerQuitEvent(@NotNull @NotNull Player who, @Nullable @Nullable String quitMessage, @Nullable @Nullable PlayerQuitEvent.QuitReason quitReason)Deprecated. -
PlayerQuitEvent
@Deprecated public PlayerQuitEvent(@NotNull @NotNull Player who, @Nullable net.kyori.adventure.text.Component quitMessage)Deprecated. -
PlayerQuitEvent
-
-
Method Details
-
quitMessage
Gets the quit message to send to all online players- Returns:
- string quit message
-
quitMessage
Sets the quit message to send to all online players- Parameters:
quitMessage
- quit message
-
getQuitMessage
Deprecated.in favour ofquitMessage()
Gets the quit message to send to all online players- Returns:
- string quit message
-
setQuitMessage
Deprecated.in favour ofquitMessage(net.kyori.adventure.text.Component)
Sets the quit message to send to all online players- Parameters:
quitMessage
- quit message
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-
getReason
-
quitMessage()