# Commands

## Player Commands

| Command               | Description                                       | Permission         |
| --------------------- | ------------------------------------------------- | ------------------ |
| `/ps` or `/ps list`   | List your protected regions                       | `cakeprotect.use`  |
| `/ps home [number]`   | Teleport to your region                           | `cakeprotect.use`  |
| `/ps info`            | View region info at current location              | `cakeprotect.use`  |
| `/ps shop`            | Open protection stone shop                        | `cakeprotect.shop` |
| `/ps add <player>`    | Add member to region (stand inside)               | `cakeprotect.use`  |
| `/ps remove <player>` | Remove member from region                         | `cakeprotect.use`  |
| `/ps delete`          | Delete region at current location (returns block) | `cakeprotect.use`  |

## Admin Commands

| Command                    | Description                                 | Permission          |
| -------------------------- | ------------------------------------------- | ------------------- |
| `/ps admin`                | Open admin panel GUI                        | `cakeprotect.admin` |
| `/ps admin reload`         | Reload all configuration files              | `cakeprotect.admin` |
| `/ps reload`               | Same as above                               | `cakeprotect.admin` |
| `/ps give <player> <tier>` | Give protection block to player             | `cakeprotect.admin` |
| `/ps migrate`              | Migrate from ProtectionStones (auto 3-step) | `cakeprotect.admin` |

## GUI Access

* **Right-click** a protection stone block → Opens Settings GUI
* Settings GUI provides access to: Flags, Members, Banned, Owner, Rename, Hide, Border

## Migration Details

`/ps migrate` performs these steps automatically:

1. **\[1/3] Import** — Reads WorldGuard regions starting with `ps`, imports to CakeProtect database
2. **\[2/3] Cleanup** — Removes old `ps*` WorldGuard regions (keeps `cake_ps_*`)
3. **\[3/3] Sync** — Creates new `cake_ps_*` WorldGuard regions from database

After completion, safely remove the ProtectionStones plugin JAR and restart.

## Aliases

* `/ps` = `/protect` = `/protection`


---

# 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/commands.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.
