Stop calculating permissions on closed Players

This commit is contained in:
Shoghi Cervantes 2015-06-19 14:52:08 +02:00
parent a1cc60d472
commit 5796784442
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -461,6 +461,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_USERS, $this);
$this->server->getPluginManager()->unsubscribeFromPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE, $this);
if($this->perm === null){
return;
}
$this->perm->recalculatePermissions();
if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){