PHP Class pocketmine\event\player\PlayerCommandPreprocessEvent

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
Inheritance: extends PlayerEvent, implements pocketmine\event\Cancellable
Mostra file Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Properties

Property Type Description
$handlerList

Protected Properties

Property Type Description
$message string

Public Methods

Method Description
__construct ( Player $player, string $message )
getMessage ( ) : string
setMessage ( string $message )
setPlayer ( Player $player )

Method Details

__construct() public method

public __construct ( Player $player, string $message )
$player pocketmine\Player
$message string

getMessage() public method

public getMessage ( ) : string
return string

setMessage() public method

public setMessage ( string $message )
$message string

setPlayer() public method

public setPlayer ( Player $player )
$player pocketmine\Player

Property Details

$handlerList public_oe static_oe property

public static $handlerList

$message protected_oe property

protected string $message
return string