Does anyone know of a way to automatically detect the map has changed and assign the correct data file for said map?

My server solely runs custom maps and having this automated would be very helpful.

"Map 1" is on the server with "Map 1" DynamicPvP.cs data file
Server wipes and is now "Map 2"
Plugin detects map change and checks map name to load correct data file.