public void checkserver(int num){
		if (num==1){TC=GosLink.TC1;ol=offline1;ct=count1;}
		else{TC=GosLink.TC2;ol=offline2;ct=count2;}
		if (TC.loggedin == 1){
			if (ct==3){
				TC.write("");
				GosLink.dw.append("PING");
				ct=0;
			}else{ct++;}
			if (ct >5){ct=0;}
		}else{
			if (ol==0){GosLink.dw.append("Server "+num+" is offline, waiting to restart.");}
			if (ol == time){
				ol=0;
				GosLink.dw.append("Starting Server "+num+".");
				GosLink.startit(num);
			}else{ol++;}
		}
		if (num==1){offline1=ol;count1=ct;}
		else{offline2=ol;count2=ct;}
	}