Added RakLib port checking option

This commit is contained in:
Shoghi Cervantes 2014-08-24 17:16:37 +02:00
parent c47e359262
commit 1ea0531ec7
3 changed files with 6 additions and 2 deletions

2
.gitmodules vendored
View File

@ -4,5 +4,5 @@
branch = master branch = master
[submodule "src/raklib"] [submodule "src/raklib"]
path = src/raklib path = src/raklib
url = https://github.com/PocketMine/RakLib.git url = git@github.com:PocketMine/RakLib.git
branch = master branch = master

View File

@ -190,6 +190,10 @@ class RakLibInterface implements ServerInstance, SourceInterface{
$this->interface->sendOption("name", "MCCPP;Demo;$name"); $this->interface->sendOption("name", "MCCPP;Demo;$name");
} }
public function setPortCheck($name){
$this->interface->sendOption("portChecking", (bool) $name);
}
public function handleOption($name, $value){ public function handleOption($name, $value){
if($name === "bandwidth"){ if($name === "bandwidth"){
$v = unserialize($value); $v = unserialize($value);

@ -1 +1 @@
Subproject commit 243e611b935242ca33c082fee83c0f1f5cddaaf7 Subproject commit fadd6a777956ead7f8e097a38051527cdc165ab2