diff --git a/README.md b/README.md index db1cca6..1208212 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,10 @@ Though this should be easy enough to setup using a `cronjob`, like `0 */6 * * * YourDockerUser cd /path/to/docker/compose/file && docker compose restart` Need different time or interval but lacking knowledge of cron? Check [crontab.guru](https://crontab.guru/) +### :question: How to disable *BattlEye* anti-cheat? + +In your `docker-compose.yml` set `ADDITIONALFLAGS="-nobattleye"`. + ### :question: Which Docker image? `main` or `latest`? Images tagged as `latest` are **tested and known to work.**[^3] diff --git a/docker-compose.yml b/docker-compose.yml index d962397..a48c291 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,7 @@ services: - GAMEPORT=7777 - QUERYPORT=27015 - MAXPLAYERS=32 + - ADDITIONALFLAGS="" ports: - "7777:7777/udp" - "7777:7777/tcp" diff --git a/start-server.sh b/start-server.sh index cd1b229..c7f0ee9 100644 --- a/start-server.sh +++ b/start-server.sh @@ -69,7 +69,7 @@ xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" \ -port=${GAMEPORT:-7777} \ -QueryPort=${QUERYPORT:-27015} \ -MaxPlayers=${MAXPLAYERS:-32} \ - & + ${ADDITIONALFLAGS} & WRAPPER_PID=$! echo "Server wrapper started with PID $WRAPPER_PID"