# GUI System

## เปิด GUI

**คลิกขวา** ที่บล็อก Protection Stone → เปิด Settings GUI

## Settings GUI (หน้าหลัก)

| ปุ่ม           | Function                                  |
| -------------- | ----------------------------------------- |
| 📋 Information | ดูข้อมูลเขต: เจ้าของ, ขนาด, พิกัด, สมาชิก |
| 🏷️ Rename     | เปลี่ยนชื่อเขตโพรเทค                      |
| 🚩 Flag        | ตั้งค่า 14 flags + เปลี่ยนกลุ่มเป้าหมาย   |
| 👥 Member      | เพิ่ม/ลบสมาชิก ดูรายชื่อ                  |
| 👑 Owner       | ดูเจ้าของ / โอนเจ้าของ                    |
| 🚫 Banned      | แบน/ปลดแบนผู้เล่น                         |
| 👁️ Hide       | ซ่อน/แสดงบล็อก PS                         |
| 🔲 Border      | แสดงเส้นขอบพื้นที่ด้วย particle           |

## Flag GUI

* แสดง 14 flags ทั้งหมด
* แต่ละ flag แสดง: ชื่อ, คำอธิบาย, สถานะปัจจุบัน, กลุ่มเป้าหมาย
* คลิกซ้าย = สลับสถานะ
* คลิกขวา = เปลี่ยนกลุ่ม

## Member GUI

* แสดงหัวผู้เล่น (skull) ของสมาชิกทั้งหมด
* คลิกที่หัว = ลบสมาชิก
* ปุ่ม "เพิ่มสมาชิก" = พิมพ์ชื่อในแชท

## Banned GUI

* แสดงหัวผู้เล่นที่ถูกแบน
* คลิกที่หัว = ปลดแบน
* ปุ่ม "แบนผู้เล่น" = พิมพ์ชื่อในแชท

## Owner GUI

* แสดงหัวเจ้าของ
* ปุ่ม "โอนเจ้าของ" = พิมพ์ชื่อเจ้าของใหม่

## Shop GUI

* เปิดด้วย `/ps shop`
* แสดง tier ที่ enabled + showInShop
* คลิกเพื่อซื้อ (หักเงินผ่าน Vault)

## Input Methods

| Platform | วิธี Input                                   |
| -------- | -------------------------------------------- |
| Java     | ปิด GUI → พิมพ์ในแชท (พิมพ์ `cancel` ยกเลิก) |
| Bedrock  | Dialog API (ไม่ต้องพิมพ์ในแชท)               |


---

# 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/gui-system.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.
