Package org.bukkit.event.player
Class PlayerQuitEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerQuitEvent
public class PlayerQuitEvent extends PlayerEvent
Called when a player leaves a server
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerQuitEvent(Player who, String quitMessage)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
String
getQuitMessage()
Gets the quit message to send to all online playersvoid
setQuitMessage(String quitMessage)
Sets the quit message to send to all online players
-
Constructor Details
-
Method Details
-
getQuitMessage
Gets the quit message to send to all online players- Returns:
- string quit message
-
setQuitMessage
Sets the quit message to send to all online players- Parameters:
quitMessage
- quit message
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-