Skip to content

DataPacketSendEvent ​

class · pocketmine\event\server\DataPacketSendEvent · source

Extends ServerEvent
Implements Cancellable

Called when packets are sent to network sessions.

Methods ​

__construct() ​

php
public function __construct(array $targets, array $packets)

getPackets() ​

php
public function getPackets() : array

getTargets() ​

php
public function getTargets() : array

setPackets() ​

php
public function setPackets(array $packets) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.