Cuberite
A lightweight, fast and extensible game server for Minecraft
|
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 () |
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.
|
inlinevirtual |
Definition at line 191 of file PluginManager.h.
|
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.