mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-25 12:23:48 +00:00
Added RakLibInterface::setPacketLimit() (#3398)
This commit is contained in:
parent
06a9c98ded
commit
6422ed7722
@ -226,6 +226,10 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
|||||||
$this->interface->sendOption("portChecking", $name);
|
$this->interface->sendOption("portChecking", $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setPacketLimit(int $limit) : void{
|
||||||
|
$this->interface->sendOption("packetLimit", $limit);
|
||||||
|
}
|
||||||
|
|
||||||
public function handleOption(string $option, string $value) : void{
|
public function handleOption(string $option, string $value) : void{
|
||||||
if($option === "bandwidth"){
|
if($option === "bandwidth"){
|
||||||
$v = unserialize($value);
|
$v = unserialize($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user