lythx / trakman

Trackmania Forever server controller written in TypeScript
https://trakman.ptrk.eu
MIT License
24 stars 4 forks source link

Maplist not reloaded after adding maps with external tool #212

Closed Skorlok closed 1 year ago

Skorlok commented 1 year ago

Hi, just a little feature suggestion: I would like to easily add maps from Adminserv or my discord bot without restart the controller

Just need to reload the maplist on "TrackMania.ChallengeListModified" callback (src/Listeners.ts)

wsrvn commented 1 year ago

can be buggy in specific cases, we'll be testing this soon

lythx commented 1 year ago

The feature is on the dev branch for now (gonna be on main today probably). I tested it by executing commands from controller code, hopefully it works with your tools too

lythx commented 1 year ago

To enable it set "updateMatchSettingsOnChange" to true in the main controller config (/config/Config.js)

lythx commented 1 year ago

merged to main