public Client returnClient(String logged){
        for (int i=0; i<ServerThread.clientList.size();i++){
            if (ServerThread.clientList.get(i).getName() == null ? logged == null : ServerThread.clientList.get(i).getName().equals(logged)){
                return ServerThread.clientList.get(i);
            }
        }
        return null;
    }