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

Public Member Functions

 __construct (Server $server, ?ClientConnection $client, array &$data)
 
- Public Member Functions inherited from Phpcraft\Event\ServerEvent
 __construct (Server $server)
 

Public Attributes

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

Detailed Description

The event emitted by the server when it has been list pinged. Cancellable.

Since
0.5.20

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerListPingEvent::__construct ( Server  $server,
?ClientConnection  $client,
array &  $data 
)

Member Data Documentation

◆ $client

ClientConnection null Phpcraft\Event\ServerListPingEvent::$client

The client that has triggered this event or null if called internally to get list ping information.

◆ $data

array Phpcraft\Event\ServerListPingEvent::$data

The list ping data that will be responded with.