private void authenticate(NetMessage n) {
		Authentication a = n.getAuthentication();
		if (a.getVersionID() == Parameters.VERSION_ID && a.getPassword().compareTo(Parameters.PASSWORD) == 0) {
			isVerified = true;
			manager.statusMessage(id, name, "Client "+id+" is verified");
		} else {
			connection.close();
		}
//		switch (n.type2) {
//		case NetObject.VERSION_ID:
//			if (n.decimal == Parameters.VERSION_ID)
//				connection.send(new NetObject(NetObject.AUTHENTICATE,NetObject.PASSWORD));
//			else
//				connection.close();
//			break;
//		case NetObject.PASSWORD:
//			if (n.string.compareTo(Parameters.PASSWORD) == 0) {
//				isVerified = true;
//				manager.statusMessage(id, name, "Client "+id+" is verified");
//			} else
//				connection.close();
//			break;
//		}
	}