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

Public Member Functions

 __construct (Player $player, $message, $format="chat.type.text", array $recipients=null)
 
 getMessage ()
 
 setMessage ($message)
 
 setPlayer (Player $player)
 
 getFormat ()
 
 setFormat ($format)
 
 getRecipients ()
 
 setRecipients (array $recipients)
 
- 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
 
 $format
 
 $recipients = []
 
- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a player chats something

Member Function Documentation

setPlayer ( Player  $player)

Changes the player that is sending the message

Parameters
Player$player

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