2023-12-30 23:03:54 +00:00
|
|
|
function getPlayerCountOrNull(resp) {
|
2020-05-11 23:29:26 +00:00
|
|
|
if (resp) {
|
2023-12-30 23:03:54 +00:00
|
|
|
return resp.players.online;
|
2020-05-11 23:29:26 +00:00
|
|
|
} else {
|
2023-12-30 23:03:54 +00:00
|
|
|
return null;
|
2020-05-11 23:29:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
2023-12-30 23:03:54 +00:00
|
|
|
getPlayerCountOrNull,
|
|
|
|
};
|