endstone::ScriptMessageEvent
Called when a message is sent by /scriptevent command.
Bases: endstone::Cancellable< ServerEvent >
Attributes:
| Name | Description |
|---|---|
NAME |
Functions:
NAME
const std::string endstone::ScriptMessageEvent::NAME; ScriptMessageEvent
ScriptMessageEvent(std::string message_id, std::string message,
const CommandSender &sender) getEventName
std::string getEventName() override constGets a user-friendly identifier for this event.
Returns:
name of this event
getMessage
const std::string &getMessage() constGet the message to send.
Returns:
Message to send
getMessageId
const std::string &getMessageId() constGet the message id to send.
Returns:
Message id to send
getSender
const CommandSender &getSender() constGets the command sender who initiated the command
Returns:
Command sender who initiated the command
Last updated on