# Admin GUI

Access via `/ps admin` (requires `cakeprotect.admin` permission).

## Main Panel

| Button            | Function                                                          |
| ----------------- | ----------------------------------------------------------------- |
| ᴛɪᴇʀ ᴍᴀɴᴀɢᴇᴍᴇɴᴛ   | Create/delete/edit tiers, set price & radius                      |
| ดู ʀᴇɢɪᴏɴ ทั้งหมด | Browse all regions (left-click) or search by player (right-click) |
| ᴅᴇꜰᴀᴜʟᴛ ꜰʟᴀɢꜱ     | Set default flag values for new regions                           |
| แจก ᴛɪᴇʀ ครั้งแรก | Configure first-join tier gift                                    |
| เรียงลำดับ Tier   | Reorder tier display in shop                                      |

## Tier Management

* **Left-click** tier → Edit (opens Dialog API with name/radius/price inputs)
* **Q (Drop)** → Toggle enable/disable
* **Shift+click** → Toggle show/hide in shop
* **Right-click** → Delete tier
* **+ สร้าง Tier ใหม่** → Select ore block → Dialog API input

## Region Browser

* Paginated list of all regions (45 per page)
* **Search** by player name (right-click on main panel, or click 🔍)
* Click any region → Region Detail GUI

## Region Detail

| Button       | Function                          |
| ------------ | --------------------------------- |
| TP ไป Region | Teleport to region center         |
| แก้ไข Flags  | Open flags editor for this region |
| เพิ่มสมาชิก  | Add member (chat input)           |
| โอนเจ้าของ   | Transfer ownership (chat input)   |
| ลบ Region    | Permanently delete region         |

## Default Flags

Toggle default flag values that apply to newly created regions. Click any flag to switch between Allow/Deny.

## First Join Tier

Select which tier to give new players on first join, or disable the feature entirely.

## Tier Order

Reorder tiers by clicking:

* **Left-click** = Move up
* **Right-click** = Move down

Order affects display in `/ps shop` GUI.


---

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