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
 
- 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 server when the console has proposed a broadcast. Cancellable.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerConsoleEvent::__construct ( Server  $server,
string  $message 
)
Parameters
Server$server
string$messageThe message that the console has proposed.

Member Data Documentation

◆ $message

string Phpcraft\Event\ServerConsoleEvent::$message

The message that the console has proposed.