endstone::ServerCommandEvent
Called when the console runs a command, early in the process.
Bases: endstone::Cancellable< ServerEvent >
Attributes:
| Name | Description |
|---|---|
NAME |
Functions:
| Name | Description |
|---|---|
ServerCommandEvent | |
getCommand | |
getEventName | |
getSender | |
setCommand |
NAME
const std::string endstone::ServerCommandEvent::NAME; ServerCommandEvent
ServerCommandEvent(CommandSender &sender, std::string command) getCommand
std::string getCommand() constGets the command that the server is attempting to execute from the console
Returns:
Command the server is attempting to execute
getEventName
std::string getEventName() override constGets a user-friendly identifier for this event.
Returns:
name of this event
getSender
CommandSender &getSender() constGet the command sender.
Returns:
The sender
setCommand
void setCommand(std::string message)Sets the command that the server will execute
Parameters:
messageNew message that the server will execute
Last updated on