# Understanding the config

The config is pretty straightforward, there's not much to understand.

***

This is the database configuration. You can have either SQLite or MySQL, use mysql if you want to sync the collections data across servers.

```database:
  type: sqlite # Options: mysql, sqlite
  mysql:
    host: localhost
    port: 3306
    database: your_database_name
    username: your_mysql_username
    password: your_mysql_password
  sqlite:
    path: plugins/UltraCollections/database.db
```

***

This saves the playerdata periodically. If a player leaves the server or if the server stops, the data is saved instantly to make sure its synced on other servers when using mysql.

```
save-data-every: 1200 #time in ticks, 1200 = 60 seconds
```

***

This is pretty self explanatory, if you don't want the plugin to work on a certain world, add them to the `disabled-worlds` list and if you don't want it to work in certain worldguard regions, add those worldguard regions to `disabled-worldguard-regions`

```
disabled-worlds:
  - world_2

disabled-worldguard-regions:
  - village
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pogmc.net/plugins/ultracollections/understanding-the-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
