more games
This commit is contained in:
parent
c330f66edc
commit
5351680138
|
@ -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
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue