# AutoExec Automatically execute the correct config for a map ## Installation [Download Plugin](https://github.com/spiretf/autoexec/raw/master/plugin/autoexec.smx) ## Usage The plugin automatically executes the config while loading a map. If a team readies up without the expected number of players for the active config, a warning will be shown. ### Configuration - `sm_autoexec_league`: set the league for which to load the config (etf2l or ugc, defaults to ugc) - `sm_autoexec_mode`: set the gamemode for which to load the config (4v4, 6v6 or 9v9, defaults to 9v9) - `sm_autoexec_autoset`: try to set league and mode when a config is manually loaded (true or false) ### Manually execute the config You can manually load the selected config using the `sm_autoexec` server command.