Use Doomsday Script to perform actions after loading a map and when exiting a map. While this is useful for map cycling (restart a co-op episode from beginning after completion), it is also a good modding feature. The key is to define different scopes for the scripts, e.g., a scope for the server's multiplayer behavior, or another for the map's own behavior as intended by its author.