> For the complete documentation index, see [llms.txt](https://docs.clashperk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clashperk.com/features/flags-ban-strike.md).

# Flags (Ban/Strike)

## Ban

When a player receives a banned flag, it usually means they have violated the community guidelines to such an extent that they are no longer allowed in the clan or family. This could be due to severe misconduct, cheating, harassment, or other serious offenses.

<mark style="color:blue;">**/flag create**</mark> `[BAN]` `[PLAYER]` `[...REASON]`

### Getting Alerts

When a banned player joins your clan or family, the bot can notify you in the Flag Alert Log.

<mark style="color:blue;">**/setup server-logs**</mark> `[Flag Alert Log]`

***

## Strike

A strike is a soft warning — a milder penalty than a ban. It serves as a notification to the user that their behavior has been noted and is not acceptable according to the clan's rules. Strikes are often used for minor infractions or as a first step in a progressive disciplinary system.

<mark style="color:blue;">**/flag create**</mark> `[STRIKE]` `[PLAYER]` `[...REASON]` `[EXPIRY_DAYS]`

***

### Other options

These options work on any flag type (`/flag create`):

* **flag\_expiry\_days** - Number of days after which the flag automatically expires. Applies to both bans and strikes (most useful for strikes).
* **flag\_impact** - The weight/severity of the flag.
* **dm\_user** - Whether to DM the player when the flag is added.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.clashperk.com/features/flags-ban-strike.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
