Skip to content

SilentDiscard ​

final class · pocketmine\network\mcpe\handler\SilentDiscard · source

When a packet's default handler isn't overridden, packets will normally be dropped without decoding and a debug message will be logged. This attribute allows suppressing the debug message in this case, without overriding the handler (which would force the packet to be decoded, wasting CPU time).

Properties ​

$comment ​

php
public readonly string $comment

$packetClass ​

php
public readonly string $packetClass

Methods ​

__construct() ​

php
public function __construct(string $packetClass, string $comment = "")

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