PocketMine
PlayerCommandPreprocessEvent Class Reference
Inheritance diagram for PlayerCommandPreprocessEvent:
PlayerEvent Cancellable Event

Public Member Functions

 __construct (Player $player, $message)
 
 getMessage ()
 
 setMessage ($message)
 
 setPlayer (Player $player)
 
- Public Member Functions inherited from PlayerEvent
 getPlayer ()
 
- 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

 $message
 
- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a player runs a command or chats, 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 ( Player  $player,
  $message 
)
Parameters
Player$player
string$message

Member Function Documentation

getMessage ( )
Returns
string
setMessage (   $message)
Parameters
string$message
setPlayer ( Player  $player)
Parameters
Player$player

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