mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Added stop Chunked on Player::close()
This commit is contained in:
@@ -254,6 +254,7 @@ class Player{
|
|||||||
$this->recovery = null;
|
$this->recovery = null;
|
||||||
unset($this->recovery);
|
unset($this->recovery);
|
||||||
$this->connected = false;
|
$this->connected = false;
|
||||||
|
$this->server->interface->stopChunked($this->CID);
|
||||||
if($msg === true and $this->username != ""){
|
if($msg === true and $this->username != ""){
|
||||||
$this->server->api->chat->broadcast($this->username." left the game");
|
$this->server->api->chat->broadcast($this->username." left the game");
|
||||||
}
|
}
|
||||||
|
@@ -27,8 +27,8 @@ the Free Software Foundation, either version 3 of the License, or
|
|||||||
|
|
||||||
class PocketMinecraftServer{
|
class PocketMinecraftServer{
|
||||||
public $tCnt;
|
public $tCnt;
|
||||||
public $serverID, $database, $version, $invisible, $api, $tickMeasure, $preparedSQL, $seed, $gamemode, $name, $maxClients, $clients, $eidCnt, $custom, $description, $motd, $port, $saveEnabled;
|
public $serverID, $interface, $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;
|
private $serverip, $evCnt, $handCnt, $events, $eventsID, $handlers, $serverType, $lastTick, $ticks;
|
||||||
|
|
||||||
private function load(){
|
private function load(){
|
||||||
$this->version = new VersionString();
|
$this->version = new VersionString();
|
||||||
|
Reference in New Issue
Block a user