This commit is contained in:
TheiLLeniumStudios
2023-02-06 14:09:37 +00:00
parent b46e79e3d7
commit b38f4f06ed
+2 -2
View File
@@ -78,11 +78,11 @@ if ! is_array_empty "$resources_to_restart"; then
echo "Will restart individual resources"
for resource in $resources_to_restart; do
echo "Restarting ${resource}"
rcon -a ${SERVER_IP}:${SERVER_PORT} -p ${RCON_PASSWORD} command "ensure ${resource}"
rcon -a "${SERVER_IP}:${SERVER_PORT}" -p "${RCON_PASSWORD}" command "ensure ${resource}"
done
else
echo "Will restart the whole server"
rcon -a ${SERVER_IP}:${SERVER_PORT} -p ${RCON_PASSWORD} command 'quit "Restarting server"'
rcon -a "${SERVER_IP}:${SERVER_PORT}" -p "${RCON_PASSWORD}" command 'txaEvent "serverShuttingDown" "{delay:5000,author:Server Owner,message:Server restarting.}"'
fi
else
echo "Nothing to restart"