public void packetReceived(InSimResponse response) {
System.out.println(response);
}
public void packetReceived(InSimResponse response) {
if (response instanceof NewConnectionResponse) {
// here you get the connection id
} else if (response instanceof NewPlayerResponse) {
// here you get the player id and the player name etc.
}
}
String command = "rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + lfsHome + "LFS.exe\" /insim=" + port;