endstone::PlayerCommandEvent
Called whenever a player runs a command.
Bases: endstone::Cancellable< PlayerEvent >
Attributes:
| Name | Description |
|---|---|
NAME |
Functions:
| Name | Description |
|---|---|
PlayerCommandEvent | |
getCommand | |
getEventName | |
setCommand |
NAME
const std::string endstone::PlayerCommandEvent::NAME; PlayerCommandEvent
PlayerCommandEvent(Player &player, std::string command) getCommand
std::string getCommand() constGets the command that the player is attempting to send.
Returns:
Command the player is attempting to send
getEventName
std::string getEventName() override constGets a user-friendly identifier for this event.
Returns:
name of this event
setCommand
void setCommand(std::string command)Sets the command that the player will send.
Parameters:
commandNew command that the player will send
Last updated on