PHP Class pocketmine\event\player\PlayerChatEvent

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
$format string
$message string
$recipients pocketmine\Player[]

Public Methods

Method Description
__construct ( Player $player, $message, $format = "chat.type.text", array $recipients = null )
getFormat ( )
getMessage ( )
getRecipients ( )
setFormat ( $format )
setMessage ( $message )
setPlayer ( Player $player ) Changes the player that is sending the message
setRecipients ( array $recipients )

Method Details

__construct() public method

public __construct ( Player $player, $message, $format = "chat.type.text", array $recipients = null )
$player pocketmine\Player
$recipients array

getFormat() public method

public getFormat ( )

getMessage() public method

public getMessage ( )

getRecipients() public method

public getRecipients ( )

setFormat() public method

public setFormat ( $format )

setMessage() public method

public setMessage ( $message )

setPlayer() public method

Changes the player that is sending the message
public setPlayer ( Player $player )
$player pocketmine\Player

setRecipients() public method

public setRecipients ( array $recipients )
$recipients array

Property Details

$format protected_oe property

protected string $format
return string

$handlerList public_oe static_oe property

public static $handlerList

$message protected_oe property

protected string $message
return string

$recipients protected_oe property

protected Player[],pocketmine $recipients
return pocketmine\Player[]