Boolean ItemRights = false;
if (Item.UserID == Session.GetHabbo().Id || Room.CheckRights(Session, false))
ItemRights = true;
else if (Room.Group != null && Room.CheckRights(Session, false, true))//Room has a group, this user has group rights.
ItemRights = true;
else if (Session.GetHabbo().GetPermissions().HasRight("room_item_take"))
ItemRights = true;
if(item.UserID == Session.GetHabbo().Id || (Session.GetHabbo().GetPermissions().HasRight("room_item_take")))
ItemRights = true;