endstone::PlayerQuitEvent
Called when a player leaves a server.
Bases: endstone::PlayerEvent
Functions:
| Name | Description |
|---|---|
PlayerQuitEvent | |
getQuitMessage | Gets the quit message to send to all online players. |
setQuitMessage | Sets the quit message to send to all online players. |
PlayerQuitEvent
PlayerQuitEvent(Player &player, std::optional<Message> quit_message) getQuitMessage
std::optional<Message> getQuitMessage() constGets the quit message to send to all online players.
Returns:
Message to appear to other players on the server.
setQuitMessage
void setQuitMessage(std::optional<Message> message)Sets the quit message to send to all online players.
Parameters:
messageMessage to appear to other players on the server.
Last updated on