Replies: 1 comment 2 replies
-
|
Shouldn't be to hard, using the same way as for #297. if [ "${PUBLIC:=0}" -eq 0 ]; then
log "Can't check if players are online when PUBLIC=0"
log "This is because we cannot query your server via the Steam API"
else
export ADDRESS=${ADDRESS:="127.0.0.1:2457"}
NUMBER_OF_PLAYERS=$(DEBUG_MODE=false odin status --address="${ADDRESS}" --json | jq -r '.players')
if [ "${NUMBER_OF_PLAYERS}" -gt 0 ]; then
log "Skipping update, players are online."
exit 0
fi
fi |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just an idea to check if there are active players on the server before updating, If players are active skip ?
Would be nice so that it doesn't update and restart if there are players mid boss/raid/crypt/burial.
Also like this project, props to rust, planning on moving over from what were currently using! <3
Beta Was this translation helpful? Give feedback.
All reactions