public void checkserver(int num){
		TC=GosLink2.TNH.get(num);
		ol=OLH.get(num);
		ct=CTH.get(num);

		if (TC.loggedin == 1){
			if (ct==3){
				TC.write("");
				GosLink2.dw.append("PING");
				ct=0;
			}else{ct++;}
			if (ct >5){ct=0;}
		}else{
			if (ol==0){GosLink2.dw.append("Server "+num+" is offline, waiting to restart.");}
			if (ol == time){
				ol=0;
				GosLink2.dw.append("Starting Server "+num+".");
				GosLink2.startit(num);
			}else{ol++;}
		}
		OLH.put(num, ol);
		CTH.put(num, ct);
	}