mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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;
|
||||
$this->directDataPacket($pk);
|
||||
}
|
||||
|
||||
$this->interface->close($this, $notify ? $reason : "");
|
||||
$this->sessionAdapter = null;
|
||||
|
||||
$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS, $this);
|
||||
@ -3408,7 +3408,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
}catch(\Throwable $e){
|
||||
$this->server->getLogger()->logException($e);
|
||||
}finally{
|
||||
$this->interface->close($this, $notify ? $reason : "");
|
||||
$this->server->removePlayer($this);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user