Page 1 of 1

Unset Forced mods

Posted: 16 Jan 2019, 13:07
by ranig
Hi all

I managed to set a forced mod using the Connection->setForcedMods function

Now the question is, how can I unset it back to no forced mod? The only way I could do that was by restarting the server itself, which is far from being ideal... Any idea ?

Thanks!

Re: Unset Forced mods

Posted: 16 Jan 2019, 14:36
by w1lla
SetForcedMods(boolean, array) boolean Set the mods to apply on the clients. Parameters: Override, if true even the maps with a mod will be overridden by the server setting; and Mods, an array of structures [{EnvName, Url}, ...]. Requires a map restart to be taken into account. Only available to Admin.
so boolean is false, array can be empty.

Re: Unset Forced mods

Posted: 16 Jan 2019, 23:47
by ranig
It works indeed, thanks!