getUID(); } else { $accountid = $VARS["id"]; } if ($database->has("players", ["accountid" => $accountid])) { $profile = $database->get("players", ["accountid (id)", "nickname (name)", "level", "energy", "maxenergy", "teamid"], ["accountid" => $accountid]); } else { sendJsonResp($Strings->get("Player does not exist.", false), "ERROR"); } exitWithJson([ "status" => "OK", "profile" => $profile ]);