# ⏱️ sharktime.yml

> File: `/plugins/SharkAFK/setting/sharktime.yml`

```yaml
afk-rewards:
  <thời_gian>: 
    shark-point: <số_shark_point>
    rewards:
      - "money:<số_tiền>"
      - "item:<VẬT_PHẨM>:<số_lượng>"
      - "command:<lệnh plugin>"

```

#### 🔹 Ví dụ hoàn chỉnh:

```yaml
afk-rewards:
  60:
    shark-point: 5
    rewards:
      - "money:100"
      - "item:DIAMOND:1"
      - "command:broadcast %player% vừa nhận quà AFK!"
      - "command:[crate give %player% vote 1, xp give %player% 10 levels]"

  300:
    shark-point: 10
    rewards:
      - "money:500"
      - "item:GOLD_INGOT:3"
      - "command:say GG %player% đã đạt mốc 5 phút!"

  600:
    shark-point: 20
    rewards:
      - "item:NETHERITE_INGOT:1"
      - "command:[eco give %player% 2000, title %player% title {\"text\":\"Mốc AFK 10 phút!\",\"color\":\"aqua\"}]"
```

***

#### 📌 Ghi chú phần thưởng:

| Kiểu          | Mẫu                      | Mô tả                                   |
| ------------- | ------------------------ | --------------------------------------- |
| 💰 Tiền       | `money:500`              | Tặng tiền cho player                    |
| 🎁 Vật phẩm   | `item:DIAMOND:2`         | Tặng 2 kim cương                        |
| 📜 Lệnh       | `command:say hello`      | Chạy lệnh console (player = `%player%`) |
| 📚 Nhiều lệnh | `command:[lệnh1, lệnh2]` | Viết trong dấu `[]`, cách nhau dấu phẩy |

> Bạn có thể kết hợp phần thưởng với plugin khác như CrateReloaded, EconomyShopGUI, CMI, hoặc bất kỳ plugin nào có lệnh.

***

### 🧪 Kiểm tra phần thưởng

Bạn có thể test bằng cách:

1. AFK trong vùng được chỉ định
2. Chờ đúng mốc (60s, 300s,...)
3. Kiểm tra console log để xác nhận phần thưởng chạy
4. Nếu lỗi âm thanh/lệnh, kiểm tra log lỗi


---

# 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://kazamis.gitbook.io/kazami-studio/sharkafk-wiki/sharkafk/huong-dan-cau-hinh/sharktime.yml.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.
