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

Public Member Functions

 __construct (ServerConnection $server, string $message)
 
- Public Member Functions inherited from Phpcraft\Event\ClientEvent
 __construct (ServerConnection $server)
 

Public Attributes

 $message
 
- Public Attributes inherited from Phpcraft\Event\ClientEvent
 $server
 
- Public Attributes inherited from Phpcraft\Event\Event
const PRIORITY_HIGHEST = 2
 
const PRIORITY_HIGH = 1
 
const PRIORITY_NORMAL = 0
 
const PRIORITY_LOW = -1
 
const PRIORITY_LOWEST = -2
 
 $cancelled = false
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ClientConsoleEvent::__construct ( ServerConnection  $server,
string  $message 
)
Parameters
ServerConnection$serverThe client's server connection.
string$messageThe message that the console has proposed.

Member Data Documentation

◆ $message

string Phpcraft\Event\ClientConsoleEvent::$message

The message that the console has proposed.