Added stop Chunked on Player::close()

This commit is contained in:
Shoghi Cervantes 2013-06-08 00:43:39 +02:00
parent 1ce23ab8d7
commit 20b83319de
2 changed files with 3 additions and 2 deletions

View File

@ -254,6 +254,7 @@ class Player{
$this->recovery = null;
unset($this->recovery);
$this->connected = false;
$this->server->interface->stopChunked($this->CID);
if($msg === true and $this->username != ""){
$this->server->api->chat->broadcast($this->username." left the game");
}

View File

@ -27,8 +27,8 @@ the Free Software Foundation, either version 3 of the License, or
class PocketMinecraftServer{
public $tCnt;
public $serverID, $database, $version, $invisible, $api, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
private $serverip, $interface, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $ticks;
public $serverID, $interface, $database, $version, $invisible, $api, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
private $serverip, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $ticks;
private function load(){
$this->version = new VersionString();