Merge pull request #7 from Ehaic/patch-1

Update launch.sh
This commit is contained in:
W3LFARe 2024-12-17 22:42:42 -05:00 committed by GitHub
commit 660a5fe71c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ for raw_username in "${OPS[@]}"; do
echo "Ops: $username ($UUID) is already an operator."
else
echo "Ops: Adding $username ($UUID) as operator."
jq ". += [{\"uuid\": \"$UUID\", \"name\": \"$username\", \"level\": 4}]" ops.json > tmp.json && mv tmp.json ops.json
jq ". += [{\"uuid\": \"$UUID\", \"name\": \"$username\", \"level\": 4, \"bypassesPlayerLimit\": false}]" ops.json > tmp.json && mv tmp.json ops.json
fi
else
echo "Ops: Failed to fetch UUID for $username."