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() const
Gets the command that the player is attempting to send.
Returns:
Command the player is attempting to send
getEventName
std::string getEventName() override const
Gets 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:
command
New command that the player will send
Last updated on