mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Protect permission removal against bad plugins
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user