more games

This commit is contained in:
Pedro Ivo Hudson 2024-02-13 19:14:15 -03:00
parent c330f66edc
commit 5351680138
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export default class fivem extends quake2 {
responseType: 'json'
})
state.raw.info = json
if ('version' in state.raw.info) state.version = state.raw.info.version
}
{

View File

@ -83,6 +83,7 @@ export default class quake2 extends Core {
if ('sv_hostname' in state.raw) state.name = state.raw.sv_hostname
if ('hostname' in state.raw) state.name = state.raw.hostname
if ('clients' in state.raw) state.numplayers = state.raw.clients
if ('iv' in state.raw) state.version = state.raw.iv
else state.numplayers = state.players.length + state.bots.length
}
}