private void handleJoinIPCommand(String[] split) throws IOException {
        final int three = 3;
        if (!joined) {
            try {
                String password;
                String name;
                String server = "localhost";
                if (split.length == THREE) {
                    server = split[1];
                    name = split[2];
                    password = "";
                } else if (split.length == FOUR) {
                    server = split[1];
                    name = split[TWO];
                    password = split[three];
                } else {
                    LOG.warn("Usage: /joinip <host> <name> [password]");
                    return;
                }
                connectTo(name, password, server);
            } catch (ConnectionFailure e) {
                LOG.fatal("Connection to host not possible!");
                UI.warn("Host not found!");
                pfactory.setError();
            } catch (ClassNotFoundException e) {
                LOG.fatal("Incorrect Client and Server versions!");
            }
        } else {
            UI.warn("You are currently in a running game!");
        }
    }