|
Phpcraft
|


Public Member Functions | |
| __construct (Server $server, ClientConnection $client, ServerboundPacketId $packetId) | |
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 | |
| $packetId | |
Public Attributes inherited from Phpcraft\Event\ServerClientEvent | |
| $client | |
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 | |
The event emitted by the server when a client has sent a packet. Cancellable. Cancelling the event tells the server to ignore the packet.
| Phpcraft\Event\ServerPacketEvent::__construct | ( | Server | $server, |
| ClientConnection | $client, | ||
| ServerboundPacketId | $packetId | ||
| ) |
| Server | $server | |
| ClientConnection | $client | |
| ServerboundPacketId | $packetId | The ID of the packet that the client has sent. |
| ServerboundPacketId Phpcraft\Event\ServerPacketEvent::$packetId |
The ID of the packet that the client has sent.
1.8.16