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

  1. 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)
  2. Find the variables field
  3. 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

  1. Create or go to the variables.json file under the config folder
  2. 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"
}