Configuration

ObbyLang supports configuration files written in: yaml, json, hocon and xml.

Loading a configuration file

const config = configuration.load("file-name.yml");

You can load any file from the configuration folder with the file extensions: yaml, json, conf or xml.

Getting a value

test.yml
foo: "bar"
const config = configuration.load("test.yml");
const foo = config.get("foo");

You can see all the methods that you can use to get values here

Last updated