Skip to Content
⚠ Under Construction
ReferenceC++ APIPlayerJoinEvent

endstone::PlayerJoinEvent

Called when a player joins a server.

Bases: endstone::PlayerEvent

Functions:

NameDescription
PlayerJoinEvent
getJoinMessageGets the join message to send to all online players.
setJoinMessageSets the join message to send to all online players.

PlayerJoinEvent

PlayerJoinEvent(Player &player, std::optional<Message> join_message)

getJoinMessage

std::optional<Message> getJoinMessage() const

Gets the join message to send to all online players.

Returns:

Message to appear to other players on the server.

setJoinMessage

void setJoinMessage(std::optional<Message> message)

Sets the join message to send to all online players.

Parameters:

  • message Message to appear to other players on the server.
Last updated on