# 5 - Dan

## What is dan?

In this plugin,dan is the same as **"PVP level"**.If your dan EXP has accumulated to a extent,your dan will level up.Dan will be showed when you chat.To be sure,you can also show it in the menu,scoreboard,hologram and so on by PAPI variable.

![Enter "/dt dan" can view your INFO of dan](/files/-M4xeABx1cLokzGDjBRS)

![Showing the dan when chat](/files/-M4xeFTAEa2_ExqxU6z1)

## How to attain a formal dan?

When a player first join your server.He(She) will not have a formal dan until his(her) exp has accumulated to the exp what the lowest dan you set needs.

## Dan protection machinism

In the previous,I have introduce that if the one lose a game will be deducted dan EXP.If you haven't a formal dan,your EXP will be protected even though you lose a game.If you have got a formal dan,the dan protection machinism will protect your EXP when it is deducted below the EXP values what the lowest dan needs

## Custom the dans

You can custom the dan in the config.yml.The examples are as follows

```
Dan:
  TestDan1:
    Name: "&3DUEL Lv.1"
    Exp: 80
  TestDan2:
    Name: "&alDUEL Lv.2"
    Exp: 250
  TestDan3:
    Name: "&bDUEL Lv.3"
    Exp: 500
```


---

# 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://1392847363.gitbook.io/dantiao-plugin/5.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.
