Minetrack/lib/util.js

12 lines
162 B
JavaScript

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