Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cPluginManager::cCommandHandler Class Referenceabstract

Interface that must be provided by any class that implements a command handler, either in-game or console command. More...

#include <PluginManager.h>

Public Member Functions

virtual bool ExecuteCommand (const AStringVector &a_Split, cPlayer *a_Player, const AString &a_Command, cCommandOutputCallback *a_Output=nullptr)=0
 Executes the specified in-game command. More...
 
virtual ~cCommandHandler ()
 

Detailed Description

Interface that must be provided by any class that implements a command handler, either in-game or console command.

Definition at line 187 of file PluginManager.h.

Constructor & Destructor Documentation

◆ ~cCommandHandler()

virtual cPluginManager::cCommandHandler::~cCommandHandler ( )
inlinevirtual

Definition at line 191 of file PluginManager.h.

Member Function Documentation

◆ ExecuteCommand()

virtual bool cPluginManager::cCommandHandler::ExecuteCommand ( const AStringVector a_Split,
cPlayer a_Player,
const AString a_Command,
cCommandOutputCallback a_Output = nullptr 
)
pure virtual

Executes the specified in-game command.

a_Split is the command string, split at the spaces. a_Player is the player executing the command, nullptr in case of the console. a_Command is the entire command string. a_Output is the sink into which the additional text returned by the command handler should be sent; only used for console commands.


The documentation for this class was generated from the following file: