# Anti Join Flood

## About this module

The Anti Join Flood module prevents more than a defined amount of players joining every minute to prevent bot join flooding to lag, spam, & or crash the server.

## Config guide

You can access the below settings in the **anti-join-flood.yml** file within the **modules** folder of the plugin's root folder.

{% hint style="success" %}
**Config excerpts taken from v4.1.4 and may not be completely up-to-date with the latest changes. To see the most up-to-date file, see below:**
{% endhint %}

{% content-ref url="/pages/-MOrlnrRz0tLe4y1WHmf" %}
[anti-join-flood.yml](/files/files/module-configurations/anti-join-flood.yml.md)
{% endcontent-ref %}

###

### allowed-joins-per-minute&#xD;

This is the limit of joins (including relogs) that will be allowed by the server within 60 seconds

{% hint style="warning" %}
Make sure you change this value to what will work best for your server to prevent ChatSentry from blocking players from joining when it shouldn't.
{% endhint %}

**Recommended settings:**\
Small servers: \~12\
Medium servers: \~35\
Big servers: \~100+

```yaml
allowed-joins-per-minute: 12
```

### disable-join-flood-check-on-startup

This option disables join flood checking for 2 minutes and 30 seconds after starting to prevent blocking people joining back after the server restarts.

Only set this to false if the server is actively being flooded to prevent issues.

```yaml
disable-join-flood-check-on-startup: 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.chatsentry.xyz/config-guides/module-config-guides/anti-join-flood.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.
