mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-18 17:34:11 +00:00
Player: close session in interface right at the top
I don't know why this would be anywhere _but_ here...
This commit is contained in:
parent
a4c50d3204
commit
2b37b4a659
@ -3331,7 +3331,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$pk->message = $reason;
|
$pk->message = $reason;
|
||||||
$this->directDataPacket($pk);
|
$this->directDataPacket($pk);
|
||||||
}
|
}
|
||||||
|
$this->interface->close($this, $notify ? $reason : "");
|
||||||
$this->sessionAdapter = null;
|
$this->sessionAdapter = null;
|
||||||
|
|
||||||
$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS, $this);
|
$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS, $this);
|
||||||
@ -3408,7 +3408,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}catch(\Throwable $e){
|
}catch(\Throwable $e){
|
||||||
$this->server->getLogger()->logException($e);
|
$this->server->getLogger()->logException($e);
|
||||||
}finally{
|
}finally{
|
||||||
$this->interface->close($this, $notify ? $reason : "");
|
|
||||||
$this->server->removePlayer($this);
|
$this->server->removePlayer($this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user