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 const
Gets a user-friendly identifier for this event.
Returns:
name of this event
getMessage
const std::string &getMessage() const
Get the message to send.
Returns:
Message to send
getMessageId
const std::string &getMessageId() const
Get the message id to send.
Returns:
Message id to send
getSender
const CommandSender &getSender() const
Gets the command sender who initiated the command
Returns:
Command sender who initiated the command
Last updated on