mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Added RakLib port checking option
This commit is contained in:
parent
c47e359262
commit
1ea0531ec7
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -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
|
||||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user