public void sendToAll(String msg, String nickname){
        for (int i=0;i<clientList.size();i++){
            if (clientList.get(i).getNickname() == null ? nickname != null : !clientList.get(i).getNickname().equals(nickname)){
                clientList.get(i).send("msg [" + nickname + "]: " + msg);
            }
        }
    }