Kill player below -16 as now the bottom of the world can be rendered, send player count

This commit is contained in:
Shoghi Cervantes
2015-05-15 16:51:20 +02:00
parent 76e6ccebd5
commit 7a34417e67
4 changed files with 16 additions and 2 deletions

View File

@ -172,7 +172,13 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
}
public function setName($name){
$this->interface->sendOption("name", "MCPE;".addcslashes($name, ";").";".Info::CURRENT_PROTOCOL.";".\pocketmine\MINECRAFT_VERSION_NETWORK);
$this->interface->sendOption("name",
"MCPE;".addcslashes($name, ";") .";".
Info::CURRENT_PROTOCOL.";".
\pocketmine\MINECRAFT_VERSION_NETWORK.";".
count($this->server->getOnlinePlayers()).";".
$this->server->getMaxPlayers()
);
}
public function setPortCheck($name){