# Flags

## Flag List

ทุก flag มี 3 สถานะ:

* 🟢 **อนุญาต** (Allow)
* 🔴 **ไม่อนุญาต** (Deny)
* ⚪ **ยังไม่ได้ตั้งค่า** (Unset — ใช้ค่า default ของ WorldGuard)

| #  | Flag             | Key                 | Description            |
| -- | ---------------- | ------------------- | ---------------------- |
| 1  | ต่อสู้ (PVP)     | `pvp`               | เปิด/ปิด PVP ในพื้นที่ |
| 2  | ดาเมจมอนสเตอร์   | `mob-damage`        | ดาเมจจากมอนสเตอร์      |
| 3  | เกิดมอนสเตอร์    | `mob-spawning`      | การเกิดของมอนสเตอร์    |
| 4  | ครีปเปอร์ระเบิด  | `creeper-explosion` | แรงระเบิดจากครีปเปอร์  |
| 5  | ไฟแช็ค           | `flint-steel`       | การใช้ไฟแช็ค           |
| 6  | การก่อสร้าง      | `build`             | วาง/ทุบบล็อก           |
| 7  | การใช้งานอุปกรณ์ | `interact`          | ประตู, ปุ่ม, คันโยก    |
| 8  | ลูกไฟ Ghast      | `ghast-fireball`    | ดาเมจจากลูกไฟ Ghast    |
| 9  | ทำร้ายสัตว์      | `animal-damage`     | ทำร้ายสัตว์            |
| 10 | เปิดกล่อง        | `chest-access`      | เปิดกล่อง/ถัง/shulker  |
| 11 | ระเบิด TNT       | `tnt`               | ระเบิด TNT             |
| 12 | ฟ้าผ่า           | `lightning`         | ดาเมจจากฟ้าผ่า         |
| 13 | น้ำไหล           | `water-flow`        | การไหลของน้ำ           |
| 14 | ลาวาไหล          | `lava-flow`         | การไหลของลาวา          |

## Flag Groups

แต่ละ flag สามารถกำหนดกลุ่มเป้าหมายได้:

| Group         | Description                    |
| ------------- | ------------------------------ |
| `ALL`         | มีผลกับทุกคน                   |
| `OWNER`       | มีผลเฉพาะเจ้าของ               |
| `MEMBERS`     | มีผลเฉพาะสมาชิก                |
| `NON_MEMBERS` | มีผลกับผู้เล่นที่ไม่ใช่สมาชิก  |
| `NON_OWNERS`  | มีผลกับผู้เล่นที่ไม่ใช่เจ้าของ |

## วิธีใช้งานใน GUI

1. เปิด Settings GUI (คลิกขวาที่ PS block)
2. กดปุ่ม **Flag**
3. **คลิกซ้าย** ที่ flag → สลับสถานะ (Unset → Allow → Deny → Unset)
4. **คลิกขวา** ที่ flag → เปลี่ยนกลุ่มเป้าหมาย

## Default Flags

ค่าเริ่มต้นสำหรับ region ใหม่ (แก้ไขได้ใน `config.yml`):

```yaml
default-flags:
  pvp: false
  mob-damage: false
  mob-spawning: true
  creeper-explosion: false
  flint-steel: false
  build: true
  interact: true
  ghast-fireball: false
  animal-damage: true
  chest-access: true
  tnt: false
  lightning: false
  water-flow: true
  lava-flow: false
```


---

# 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://docs.niendsitekungz.com/usage/flags.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.
