well you should all now how to add this so no point showing how to add into server
code:
Code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.Timer;
public class RebootServer{
public int RebootTimer == 0; // 300 = 5 mins :d
public RebootServer(){
System.out.println("Fallen World Server Rebooter Loaded");
}
public static void process() {
try {
RebootTimer--;
if(RebootTimer == 0)
{
Runtime.getRuntime().exec("./Reboot.bat");
}
} catch(Exception e) {}
}
}
batch file part
Code:
@echo off
color 0a
cls
echo Rebooting
tskill java /a
echo Rebooting
Rebooter
java server
cls
yes its nooby and what! it works so shut up and dont flame