* @param client
	 */
	public void send(final String data, final Client client) {
		if (client.isRunning()) {
			// int lineLimit = 80;

			/*
			 * if ( loginCheck(client) ) { lineLimit =
			 * getPlayer(client).getLineLimit(); }
			 */

			/*
			 * // if the data to be sent exceeds the line limit if
			 * (data.length() > lineLimit) { String newData = data.substring(0,
			 * lineLimit - 1); // choose a chunk of data that does not exceed
			 * the limit
			 * 
			 * if (telnet == 0) // no telnet { client.write(newData + "\r\n"); }
			 * else if (telnet == 1 || telnet == 2) { // telnet and mud clients
			 * for (int c = 0; c < data.length(); c++) {
			 * client.write(newData.charAt(c)); } client.write("\r\n"); }
			 * 
			 * send(data.substring(lineLimit - 1, data.length()), client); //
			 * recursively call the function with the remaining data
			 * 
			 * return; }
			 */

			final Socket s = client.getSocket();

			if( s.isClosed() ) {
				debug("Client: socket closed?! (unexpected disconnect)");
				client.stopRunning(); // TODO is this what I ought to do
				kick(client);
				return;
			}

			if (telnet == 0) // no telnet
			{
				client.write(data + "\r\n");
			}
			else if (telnet == 1 || telnet == 2) {
				// telnet and mud clients
				for (char c : data.toCharArray()) {
					client.write(c);
				}

				client.write("\r\n");
			}
		}
		else {
			System.out.println("Error: Client is inactive (maybe disconnected), message not sent");
			System.out.println(data);
		}
	}