PHP Class pocketmine\event\server\ServerCommandEvent

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

Public Properties

Property Type Description
$handlerList

Protected Properties

Property Type Description
$command string
$sender pocketmine\command\CommandSender

Public Methods

Method Description
__construct ( pocketmine\command\CommandSender $sender, string $command )
getCommand ( ) : string
getSender ( ) : pocketmine\command\CommandSender
setCommand ( string $command )

Method Details

__construct() public method

public __construct ( pocketmine\command\CommandSender $sender, string $command )
$sender pocketmine\command\CommandSender
$command string

getCommand() public method

public getCommand ( ) : string
return string

getSender() public method

public getSender ( ) : pocketmine\command\CommandSender
return pocketmine\command\CommandSender

setCommand() public method

public setCommand ( string $command )
$command string

Property Details

$command protected property

protected string $command
return string

$handlerList public static property

public static $handlerList

$sender protected property

protected CommandSender,pocketmine\command $sender
return pocketmine\command\CommandSender