private void analyse(DatagramPacket packet) {
        String data = new String(packet.getData()).trim();
        if (data.startsWith("/c/")) {
            clients.add(new Client(packet.getAddress(), packet.getPort(), data.replace("/c/", "")));
            sendMessageToAll("User " + data.replace("/c/", "") + " has connected.");
        } else if (data.startsWith("/m/")) {
            String username = data.replace("/m/", "").split(";")[0];
            String message = data.replace("/m/", "").split(";")[1];
            sendMessageToAll("<" + username + ">: " + message);
        } else if (data.startsWith("/dc/")) {
            try {
                clients.remove(getClientByName(data.replace("/dc/", "")));
            } catch (Exception e) {
                e.printStackTrace();
            }
            sendMessageToAll("User " + data.replace("/dc/", "") + " has disconnected.");
        }
    }