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

Public Member Functions

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

Public Attributes

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

Detailed Description

The event emitted by the server when the console has proposed a broadcast. Cancellable. Cancelling the event prevents the broadcast.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerConsoleEvent::__construct ( Server  $server,
string  $message 
)

Member Data Documentation

◆ $message

string Phpcraft\Event\ServerConsoleEvent::$message

The message that the console has proposed.