diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index 268b1cdb..bc2f9ce5 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -526,7 +526,7 @@ if [ ! -e server.properties ]; then ;; esac - sed -i "/gamemode\s*=/ c gamemode=$MODE" $SERVER_PROPERTIES + sed -i "/^gamemode\s*=/ c gamemode=$MODE" $SERVER_PROPERTIES fi fi