> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/documentation/config.md).

# config

### get

returns the value stored for the specified key.

```java
String value = config.get(String key);
```

***

### getDirectory

returns the absolute path to the config directory.

```java
String path = config.getDirectory();
```

***

### set

writes or updates a key-value pair inside the config file. returns `true` on success.

```java
boolean saved = config.set(String key, String value);
```
