Minetrack/lib/util.js
2023-12-30 23:03:54 +00:00

12 lines
165 B
JavaScript

function getPlayerCountOrNull(resp) {
if (resp) {
return resp.players.online;
} else {
return null;
}
}
module.exports = {
getPlayerCountOrNull,
};