> For the complete documentation index, see [llms.txt](https://minecraft.card2k.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minecraft.card2k.com/huong-dan-setup-nap-the/cau-hinh-plugin.md).

# Cấu hình Plugin

> ✨ Cấu hình **quan trọng**
>
> Truy cập file `config.yml`&#x20;
>
> **Điền thông tin Partner\_id & Partner\_Key** đã tạo ở [bước 1](/huong-dan-setup-nap-the/tao-api-ket-noi.md)

```yml
# Thong tin doi tac (Partner credentials)
# Lay thong tin nay tu trang quan tri Card2K
partner_id: "YOUR_PARTNER_ID"
partner_key: "YOUR_PARTNER_KEY"
```

Tắt chế độ sandbox (cực kỳ quan trọng)

```yml
sandbox: false  # Doi sang false
```

Sau khi cấu hình xong thì lưu file lại

<figure><img src="/files/hW30HbIzN9hla8C8Kvih" alt=""><figcaption><p>Lưu file cấu hình</p></figcaption></figure>

> 2. **✨ Tải lại plugin** sau khi cấu hình, sử dụng `/napthe reload`&#x20;

<figure><img src="/files/5tOESxF0uvMsWdF81wJw" alt=""><figcaption></figcaption></figure>

> 3. **Kiểm tra Plugin hoạt động đúng**, truy cập server

Sử dụng `/napthe gui` hoặc `/napthe`.

<figure><img src="/files/vTig2IaBJvE8C3aT8naZ" alt=""><figcaption><p>Gữi thử 1 thẻ đúng lên</p></figcaption></figure>

Kết nối thành công:

<figure><img src="/files/Hzlner4l7UE20MDaOhHw" alt=""><figcaption><p>Thông báo như sau là thành công</p></figcaption></figure>

Kết nối thất bại:

<figure><img src="/files/WH0g3Bk8fYkCuYBsNoGv" alt=""><figcaption><p>Lỗi điền sai thông tin kết nối, kiểm tra lại bước 1</p></figcaption></figure>

<figure><img src="/files/4tg1GZS3yyY75gLcPIA7" alt=""><figcaption><p>Chưa điền thông tin Partner_id &#x26; Partner_key trong file cấu hình</p></figcaption></figure>


---

# 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://minecraft.card2k.com/huong-dan-setup-nap-the/cau-hinh-plugin.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.
