mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added RakLib port checking option
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -4,5 +4,5 @@
|
||||
branch = master
|
||||
[submodule "src/raklib"]
|
||||
path = src/raklib
|
||||
url = https://github.com/PocketMine/RakLib.git
|
||||
url = git@github.com:PocketMine/RakLib.git
|
||||
branch = master
|
||||
|
@ -190,6 +190,10 @@ class RakLibInterface implements ServerInstance, SourceInterface{
|
||||
$this->interface->sendOption("name", "MCCPP;Demo;$name");
|
||||
}
|
||||
|
||||
public function setPortCheck($name){
|
||||
$this->interface->sendOption("portChecking", (bool) $name);
|
||||
}
|
||||
|
||||
public function handleOption($name, $value){
|
||||
if($name === "bandwidth"){
|
||||
$v = unserialize($value);
|
||||
|
Submodule src/raklib updated: 243e611b93...fadd6a7779
Reference in New Issue
Block a user