From 6422ed772257393f6418006e63a27eee61c24280 Mon Sep 17 00:00:00 2001 From: Twisted Date: Sat, 11 Apr 2020 23:27:17 +0100 Subject: [PATCH] Added RakLibInterface::setPacketLimit() (#3398) --- src/pocketmine/network/mcpe/RakLibInterface.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/network/mcpe/RakLibInterface.php b/src/pocketmine/network/mcpe/RakLibInterface.php index c9d28370cd..d8a67bfdff 100644 --- a/src/pocketmine/network/mcpe/RakLibInterface.php +++ b/src/pocketmine/network/mcpe/RakLibInterface.php @@ -226,6 +226,10 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{ $this->interface->sendOption("portChecking", $name); } + public function setPacketLimit(int $limit) : void{ + $this->interface->sendOption("packetLimit", $limit); + } + public function handleOption(string $option, string $value) : void{ if($option === "bandwidth"){ $v = unserialize($value);