Options | variables - Samuel-Martineau/MC-Config-Controller GitHub Wiki
You can add variables which can be accessible in the configuration of your server or template.
Server/Template variables
- Go to the
config.json
file of your server/template (if you have not setup any server or any template, see Configure a Server or Configure a Template) - Find the
variables
field - You can now add the variables you want available for that server/template only in a JSON Object format (the keys are always Strings and the values can be Strings, Ints and Booleans) and use it in your configuration
It should look something like this:
{
...
"variables": {
"variableName": "value"
}
}
Global variables
- Create or go to the
variables.json
file under theconfig
folder - You can now add the variables you want available for all servers/templates in a JSON Object format and use it in your configuration
It should look something like this:
{
"variableName": "value"
}