mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Protect permission removal against bad plugins
This commit is contained in:
parent
525c8db779
commit
754e0dbb49
@ -2356,11 +2356,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$this->loadQueue = [];
|
||||
$this->hasSpawned = [];
|
||||
$this->spawnPosition = null;
|
||||
$this->perm->clearPermissions();
|
||||
$this->perm = null;
|
||||
unset($this->buffer);
|
||||
}
|
||||
|
||||
$this->perm->clearPermissions();
|
||||
$this->server->removePlayer($this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user