/**
* @param Player $player
* @return array
*/
public function getEffectivePermissions(Player $player)
{
$permissions = [];
foreach ($player->getEffectivePermissions() as $attachmentInfo) {
$permission = $attachmentInfo->getPermission();
$value = $attachmentInfo->getConfigValue();
$permissions[$permission] = $value;
}
ksort($permissions);
return $permissions;
}