Move attributes to game protocol

This commit is contained in:
Guilherme Werner 2024-01-22 11:49:28 -03:00
parent 67e0cd8809
commit b56eff7783
2 changed files with 7 additions and 3 deletions

View file

@ -9,4 +9,11 @@ export default class asa extends Epic {
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
}
async run (state) {
await super.run(state)
state.name = state.raw.attributes.CUSTOMSERVERNAME_s
state.map = state.raw.attributes.MAPNAME_s
state.password = state.raw.attributes.SERVERPASSWORD_b
}
}