Phpcraft
Public Member Functions | Public Attributes | List of all members
Phpcraft\Event\ServerChatEvent Class Reference
Inheritance diagram for Phpcraft\Event\ServerChatEvent:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Event\ServerChatEvent:
Collaboration graph
[legend]

Public Member Functions

 __construct (Server $server, ClientConnection $client, string $message)
 
- Public Member Functions inherited from Phpcraft\Event\ServerClientEvent
 __construct (Server $server, ClientConnection $client)
 
- Public Member Functions inherited from Phpcraft\Event\ServerEvent
 __construct (Server $server)
 

Public Attributes

 $message
 
- Public Attributes inherited from Phpcraft\Event\ServerClientEvent
 $client
 
- Public Attributes inherited from Phpcraft\Event\ServerEvent
 $server
 

Detailed Description

The event emitted by the server when a client has proposed a chat message. Cancellable.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerChatEvent::__construct ( Server  $server,
ClientConnection  $client,
string  $message 
)

Member Data Documentation

◆ $message

string Phpcraft\Event\ServerChatEvent::$message

The message that the client has proposed.