PocketMine
ServerCommandEvent Class Reference
Inheritance diagram for ServerCommandEvent:
ServerEvent Cancellable Event RemoteServerCommandEvent

Public Member Functions

 __construct (CommandSender $sender, $command)
 
 getSender ()
 
 getCommand ()
 
 setCommand ($command)
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($value=true)
 

Static Public Attributes

static $handlerList = null
 

Protected Attributes

 $command
 
 $sender
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when the console runs a command, early in the process

You don't want to use this except for a few cases like logging commands, blocking commands on certain places, or applying modifiers.

The message contains a slash at the start

Constructor & Destructor Documentation

__construct ( CommandSender  $sender,
  $command 
)
Parameters
CommandSender$sender
string$command

Member Function Documentation

getCommand ( )
Returns
string
getSender ( )
Returns
CommandSender
setCommand (   $command)
Parameters
string$command

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