(update) allow /player and /track to be used in playground.
This commit is contained in:
2 files changed
+6
-1
No files matched your search
+4
-1
@@ -27,7 +27,10 @@ fi
|
||||
special_curl "$SIGNED_URL&directory=/mods" -X POST -F "files=@$UPLOAD"
|
||||
echo "Uploaded!"
|
||||
|
||||
BROADCAST="[ SFCRAFT UPDATE ] Server is shutting down in 10s, please be ready."
|
||||
BROADCAST="Server is shutting down in 10s, please be ready."
|
||||
UPDATE_CONTENT="[ SFCRAFT UPDATE ] $COMMIT_MESSAGE by $COMMIT_AUTHOR"
|
||||
special_curl "$API_ENDPOINT/api/client/servers/$SERVER_ID/command" -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" -X POST -d "{\"command\":\"say $UPDATE_CONTENT\"}"
|
||||
sleep 1s
|
||||
special_curl "$API_ENDPOINT/api/client/servers/$SERVER_ID/command" -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $TOKEN" -X POST -d "{\"command\":\"say $BROADCAST\"}"
|
||||
echo "Broadcast is sent!"
|
||||
sleep 10s
|
||||
|
||||
Reference in new issue
Block a user