private void connect(Boolean sleep) {
		if(sleep) {
			try {
				sleep(10000);
			} catch(InterruptedException e) {
				e.printStackTrace();
			}
		}
		try {
			socket = new Socket(ip, port);
			out = new PrintWriter(socket.getOutputStream(), true);
			in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
			out.println(name);
			if(in.readLine().equals("n")) {
			    plugin.debugger.debug("The name " + name + " is already connected.");
			    socket.close();
			    return;
			}
			out.println(pass);
			if(in.readLine().equals("n")) {
			    plugin.debugger.debug("The password you provided is invalid.");
			    socket.close();
				return;
			}
            out.println(version);
            if(in.readLine().equals("n")) {
                plugin.debugger.debug("The client's version of " + version + " does not match the server's version of " + in.readLine() + ".");
                socket.close();
                return;
            }
			connected = true;
			plugin.debugger.debug("Connected to " + ip.getHostName() + ":" + String.valueOf(port) + " under name " + name + ".");
		} catch(IOException e) {
		    plugin.debugger.debug("Could not connect to the server.");
		}
	}