Protect permission removal against bad plugins

This commit is contained in:
Shoghi Cervantes 2014-11-18 18:43:30 +01:00
parent 525c8db779
commit 754e0dbb49

View File

@ -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);
}