{
Packet packet = e.getPacket();
if (packet.Type == PacketType.ChangeUserRights)
{
FriendInfo friend;
ChangeUserRightsPacket rights = (ChangeUserRightsPacket)packet;
for (ChangeUserRightsPacket.RightsBlock block : rights.Rights)
{
EnumSet<FriendRights> newRights = FriendRights.get(block.RelatedRights);
if ((friend = FriendList.get(block.AgentRelated) )!= null)