PlaceId in joinscript KILL JACKD AND ITTEh
This commit is contained in:
parent
bb67071b11
commit
60d7a5f645
|
|
@ -41,7 +41,7 @@ const script = {
|
||||||
|
|
||||||
import sign from "./sign";
|
import sign from "./sign";
|
||||||
|
|
||||||
export default function (id, username, ip, port, membership) {
|
export default function (id, username, ip, port, membership, placeid) {
|
||||||
let joinscript = script;
|
let joinscript = script;
|
||||||
|
|
||||||
joinscript.UserId = Number(id);
|
joinscript.UserId = Number(id);
|
||||||
|
|
@ -50,6 +50,7 @@ export default function (id, username, ip, port, membership) {
|
||||||
joinscript.ServerPort = Number(port);
|
joinscript.ServerPort = Number(port);
|
||||||
joinscript.MembershipType = membership;
|
joinscript.MembershipType = membership;
|
||||||
joinscript.CharacterAppearance = `http://assetgame.rowblx.xyz/Asset/CharacterFetch.ashx?userId=${id}&placeId=1818`;
|
joinscript.CharacterAppearance = `http://assetgame.rowblx.xyz/Asset/CharacterFetch.ashx?userId=${id}&placeId=1818`;
|
||||||
|
joinscript.PlaceId = placeid;
|
||||||
|
|
||||||
return sign(JSON.stringify(joinscript));
|
return sign(JSON.stringify(joinscript));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,5 @@ import joinscript from "$lib/joinscript.js";
|
||||||
|
|
||||||
/** @type {import('./$types').RequestHandler} */
|
/** @type {import('./$types').RequestHandler} */
|
||||||
export function GET({ url }) {
|
export function GET({ url }) {
|
||||||
return new Response(
|
return new Response(joinscript(url.searchParams.get("id"), url.searchParams.get("username"), url.searchParams.get("ip"), url.searchParams.get("port"), "None", 1818));
|
||||||
joinscript(
|
|
||||||
url.searchParams.get("id"),
|
|
||||||
url.searchParams.get("username"),
|
|
||||||
url.searchParams.get("ip"),
|
|
||||||
url.searchParams.get("port"),
|
|
||||||
"None"
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue