Skip to content

Class endstone::CommandExecutor

ClassList > endstone > CommandExecutor

Represents a class which contains a single method for executing commands.

  • #include <endstone/command/command_executor.h>

Inherited by the following classes: endstone::Plugin

Public Functions

Type Name
virtual bool onCommand (CommandSender & sender, const Command & command, const std::vector< std::string > & args)
virtual ~CommandExecutor () = default

Public Functions Documentation

function onCommand

inline virtual bool endstone::CommandExecutor::onCommand (
    CommandSender & sender,
    const Command & command,
    const std::vector< std::string > & args
) 

Executes the given command, returning its success.

Parameters:

  • sender Source of the command
  • command Command which was executed
  • args Passed command arguments

Returns:

true if the execution is successful, otherwise false


function ~CommandExecutor

virtual endstone::CommandExecutor::~CommandExecutor () = default


The documentation for this class was generated from the following file include/endstone/command/command_executor.h