Find this in client.java: (you should have this file copied already)
public void destruct()
Look around for:
"ClientHandler: Client " + playerName + " disconnected.");
Under it you'll see:
|| disconnected = true
Replace it with:
if (LogoutDelay > 0) {
disconnected = false;
xLog();
logout();
} else {
disconnected = true;
}
Find incombat()
Above the void function, add:
public void xLog()
{
LogoutDelay = 30; // You can change this number
}
Your logout void function should look like this:
public void logout() {
if(LogoutDelay == 0) {
outStream.createFrame(109);
disconnected = true;
} }