This commit is contained in:
I-Have-An-Issue 2023-02-18 03:51:23 -05:00
parent 715d29b286
commit 7b44c0e4cf
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
1 changed files with 2 additions and 6 deletions

View File

@ -11,10 +11,6 @@ class GameJob extends Job {
StartGame(id) {
return new Promise(async (resolve, reject) => {
const response = await axios(`${process.env.BASE_URL}/API/Game/${id}?t=${process.env.ARBITER_TOKEN}`).catch((_) => reject(_))
const { server_token, server_port, server_owner_id } = response.data
this.id = server_token
this.placeId = id
const started = await this.Start()
@ -34,8 +30,8 @@ class GameJob extends Job {
{ type: "LUA_TSTRING", value: process.env.BASE_URL },
{ type: "LUA_TNUMBER", value: id },
{ type: "LUA_TNUMBER", value: server_port },
{ type: "LUA_TNUMBER", value: server_owner_id },
{ type: "LUA_TNUMBER", value: 50001 },
{ type: "LUA_TNUMBER", value: 0 },
],
},
}).catch((e) => reject(e))