Addon Presets
authors: banana2 (original by Elm)
Save Addons for custom gamemodes


If you wish to remove the colorset-changing feature of this add-on, you may delete (or rename) colorsets.cs.
Once the client fails to find the colorsets.cs, it will run normally without colorsets.


If a music and an add-on's name are the same, even if only 1 is enabled, after loading a preset both will be enabled.
This is because this add-on formats presets the same way as the old Client_AddonPresets (for compatability), and the format does not specify what is an add-on and what is a music file.


Add -addonpreset [name goes here] to the .bat to force it to use a specific preset.


Ex. your preset is named "1v1". Your .bat will look something like this:
start Blockland.exe -port 28000 -dedicated -gamemode CUSTOM -dToken [token goes here] -addonpreset 1v1


Ex. your preset is named "Testing Spaces". Your .bat will look something like this:
start Blockland.exe -port 28000 -dedicated -gamemode CUSTOM -dToken [token goes here] -addonpreset Testing Spaces


If any of the words in preset's name start with -, the code will recognize it as a start of the next launch option.
Only the first -addonpreset in the .bat will be read, if any come after it, these will be ignored.
If an addon's name doesn't contain "_", it will not be loaded.
Changing the gamemode to CUSTOM during hosting with a forced addon preset will undo the effects of forcing an addon preset (Some functions will remain)

If no name is specified for -addonpreset, it will request you to select an addon preset and gives 30 seconds to do so.

Ex.
start Blockland.exe -port 28000 -dedicated -gamemode CUSTOM -dToken [token goes here] -addonpreset