@Override
	public void gerenciaMsgsTCP(String msg) {

		if(msg.startsWith(PREFIX_RESPONSE_ALL_FRIENDS)){

			String message = msg.substring(5);

			String[] bffs = message.split(";");

			for(String friend: bffs){

				//username,Name,status[1] hair[3] eyes[3] mouth[3] skin[3] shirt[3]
				String[] params = friend.split(",");
				String username = params[0];
				String name = params[1];


				Friend bff = new Friend(name);
				bff.setUsername(username);

				if(params.length>1){

					char status = params[2].charAt(0);
					bff.setStatus(status);

					//TODO Nao pode vir vazio
					//char hairR = params[2].charAt(1);
					//char hairG = params[2].charAt(2);
					//char hairB = params[2].charAt(3);

					//Avatar avatar = new Avatar();
					//avatar.set
					//bff.setAvatar(avatar);

				}


				//friends.put(username, new Friend(username));
				friends.put(username, new Friend(name));
			}

			System.out.println(bffs.length+" amigos adicionados!");

			//return consumeMessage();
		}
		else if(msg.startsWith(PREFIX_RESPONSE_FRIEND_MSG)){
			System.out.println("ProtocolFriends - Mensagem recebida!");

			String recv = msg.substring(PREFIX_RESPONSE_FRIEND_MSG.length());

			String[] parts = recv.split(",");

			String sender = parts[0];
			String message = parts[1];

			messages.add(new FriendMessage(sender, message));

			//return consumeMessage();

		}

		//return msg;
	}