Skip to Content
⚠ Under Construction
ReferenceC++ APIPlayerChatEvent

endstone::PlayerChatEvent

Called when a player sends a chat message.

Bases: endstone::Cancellable< PlayerEvent >

Attributes:

NameDescription
NAME

Functions:

NAME

const std::string endstone::PlayerChatEvent::NAME;

PlayerChatEvent

PlayerChatEvent(Player &player, std::string message)

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

getMessage

std::string getMessage() const

Gets the message that the player is attempting to send.

Returns:

Message the player is attempting to send

setMessage

void setMessage(std::string message)

Sets the message that the player will send.

Parameters:

  • message New message that the player will send
Last updated on