prepare("SELECT * FROM game_session WHERE serverid = :serverid");
$checkQuery->execute(['serverid' => strtolower($id)]);
if ($checkQuery->rowCount() > 0) {
$existingRow = $checkQuery->fetch(PDO::FETCH_ASSOC);
$existingId = $existingRow['serverid'];
// if server found, BOOM!
exit("Server found. Join Game
Details: Server Id: ".$existingId."
");
}
}
?>
AfterWorld Launcher
AfterWorld Launcher (Load existing server)
This Launcher system is going to be deprecated soon, and to cumply the new system that's under development.
NOTE: DEPENDING ON YOUR SERVER SOURCE, YOUR IP MAY BE EXPOSED. TRUSTED SERVICES ARE FOR EXAMPLE: Playit.gg