> For the complete documentation index, see [llms.txt](https://statz.staartvin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://statz.staartvin.com/data/how-to-disable-statistics.md).

# How to disable statistics?

## What is it and why is it useful?

The `disabled-stats.yml` allows you to disable any statistic in under specific circumstances. For example, you can disable the tracking of kills in a certain *WorldGuard* arena or in a *GriefPrevention* claim. As of now, these 'scenarios' are supported:

* WorldGuard regions: disable a statistic in a WorldGuard region
* GriefPrevention claims: disable a statistic in the claim of any user.

For more info on how to set this up, read on!

## How to configure the file?

To configure the disabled-stats.yml, you can use any file editor. Each statistic can be specified only once, but for more than one scenario's simultaneously. Let's take a look at a sample file:

![Example of config file](https://i.imgur.com/h5ibohD.png)

The image shows an example of how you can define WorldGuard regions and GriefPrevention claims. A WorldGuard region needs a region name, so Statz can check whether the player is in that region. The GriefPrevention claim needs a UUID of a player to check whether a random player is in the claim of the player the UUID corresponds to.

You can see that the DISTANCE\_TRAVELLED stat will not be updated whenever a player is in a WorldGuard region called 'TestRegion' or 'Lala'. Similarly, this stat will not be updated whenever a player is in the GriefPrevention claim area that corresponds to one of those UUIDs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://statz.staartvin.com/data/how-to-disable-statistics.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.
