# Clan Upkeep

## How does it work?

If enabled, clans will have to pay an amount everyday to keep their clans. The value will be collected at `1:30am`. At `12am`, if the clan doesn't have enough money to pay it, a wan will be sent to the clan's BB. The amount can be fixed or based on the clan size.

Ex. fee based on the clan size:

```
upkeep base    = 20.0
clan size      = 10
final upkeep   = 200.0
```

## Configuring

* `upkeep` - The base upkeep.
* `upkeep-enabled` - Enable or disable the feature.
* `multiply-upkeep-by-clan-size` - This works as explained above
* `charge-upkeep-only-if-member-fee-enabled` - Enable upkeep if member fee is enabled.

#### Exemple

```yaml
economy:
    upkeep: 200.0
    upkeep-enabled: false
    multiply-upkeep-by-clan-size: false
    charge-upkeep-only-if-member-fee-enabled: true
```


---

# 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://wiki.roinujnosde.me/simpleclans/how-to-setup/clan-upkeep.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.
