Autoref should take responsibility for setting gamerules at the appropriate times. They could be in the map config, with an option to not touch them, in case the map does that with command blocks. Also, doDaylightCycle should be off before and after the match.