endstone::PlayerChatEvent
Called when a player sends a chat message.
Bases: endstone::Cancellable< PlayerEvent >
Attributes:
| Name | Description |
|---|---|
NAME |
Functions:
| Name | Description |
|---|---|
PlayerChatEvent | |
getEventName | |
getMessage | |
setMessage |
NAME
const std::string endstone::PlayerChatEvent::NAME; PlayerChatEvent
PlayerChatEvent(Player &player, std::string message) getEventName
std::string getEventName() override constGets a user-friendly identifier for this event.
Returns:
name of this event
getMessage
std::string getMessage() constGets 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:
messageNew message that the player will send
Last updated on