File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Site/src/routes/(rbxclient)/game/join Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ export async function GET({ url }) {
6363 const scriptFile = Bun . file ( "../data/server/loadscripts/join.lua" )
6464 const script = ( await scriptFile . text ( ) )
6565 . replaceAll ( "_PLACE_ID" , place . id . toString ( ) )
66- . replaceAll ( "_SERVER_ADDRESS" , serverAddress ) // TODO: quote
66+ . replaceAll ( "_SERVER_ADDRESS" , `" ${ serverAddress } "` )
6767 . replaceAll ( "_SERVER_PORT" , serverPort . toString ( ) )
6868 . replaceAll ( "_CREATOR_ID" , creatorUsername )
6969 . replaceAll ( "_USER_ID" , Math . floor ( Math . random ( ) * 1e9 ) . toString ( ) ) // todo: tho not rly used 4 much atm
70- . replaceAll ( "_USER_NAME " , user . username )
70+ . replaceAll ( "_USERNAME " , `" ${ user . username } "` )
7171 . replaceAll ( "_MEMBERSHIP_TYPE" , membershipType ( user . permissionLevel ) )
7272 . replaceAll ( "_CHAR_APPEARANCE" , `"${ charApp } "` )
7373 . replaceAll ( "_PING_URL" , `"${ pingUrl } "` )
You can’t perform that action at this time.
0 commit comments