mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-21 16:46:23 +00:00
0195b42eeab10d786a1fb723ae6466ef978f6c49
The sed command `sed -i "/gamemode\s*=/ c gamemode=$MODE" $SERVER_PROPERTIES` matches all lines containing `gamemode=`. This includes the line `force-gamemode` that is set it with `setServerProp "force-gamemode" "$FORCE_GAMEMODE"` So basically the `force-gamemode` line is erased and the `gamemode=value` line is duplicated, and then the server cleans it up at start and deduplicates the `gamemode` line and create a new `force-gamemode` line with a default value. This fix ensures that only the `gamemode=` line is modified when changing the gamemode value.
This repository contains the various Dockerfile definitions I'm maintaining.
Discontinued
Cassandra
I have found the official image to be quite sufficient
Description
Languages
Shell
97.1%
Dockerfile
2.3%
Mermaid
0.6%