> For the complete documentation index, see [llms.txt](https://spacewservices.gitbook.io/ampland/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacewservices.gitbook.io/ampland/documentation/core-concepts/commands.md).

# Commands

### Base Commands

| Command       | Aliases                            | Permission                  | Description         |
| ------------- | ---------------------------------- | --------------------------- | ------------------- |
| `/proteccion` | `/prote`, `/protection`, `/p`      | `amplprotections.use`       | Main player command |
| `/aprot`      | `/adminprotecciones`, `/adminprot` | `amplprotections.admin.use` | Admin staff command |

***

### Player Commands (`/p`)

#### `/p`

No arguments. Shows the help menu with all available subcommands.

***

#### `/p menu`

Opens the protection management GUI for the protection you are standing in.

| Requirement    | Details                                                |
| -------------- | ------------------------------------------------------ |
| Permission     | `amplprotections.use`                                  |
| Must be inside | A protected region                                     |
| Owner check    | Yes — only the owner or `amplprotections.admin.bypass` |

***

#### `/p info`

Displays detailed information about the current protection: land ID, owner, type, size, center coordinates, members, and flag summary.

| Requirement    | Details               |
| -------------- | --------------------- |
| Permission     | `amplprotections.use` |
| Must be inside | A protected region    |

***

#### `/p lore <text>`

Sets a custom description/lore for the protection you are standing in.

| Requirement    | Details                                                |
| -------------- | ------------------------------------------------------ |
| Permission     | `amplprotections.use`                                  |
| Must be inside | A protected region                                     |
| Owner check    | Yes — only the owner or `amplprotections.admin.bypass` |

Example:

```
/p lore My secret base
```

***

#### `/p add <player>`

Adds a player as a Member of the current protection.

| Requirement    | Details                                                                  |
| -------------- | ------------------------------------------------------------------------ |
| Permission     | `amplprotections.use`                                                    |
| Must be inside | A protected region                                                       |
| Who can use    | Owner, Secondary Owner, Admin members, or `amplprotections.admin.bypass` |
| Target         | Must be an online player                                                 |

Example:

```
/p add Steve
```

***

#### `/p remove <player>`

Removes a player from the current protection.

| Requirement    | Details                                                                  |
| -------------- | ------------------------------------------------------------------------ |
| Permission     | `amplprotections.use`                                                    |
| Must be inside | A protected region                                                       |
| Who can use    | Owner, Secondary Owner, Admin members, or `amplprotections.admin.bypass` |
| Cannot remove  | The owner of the protection                                              |

Example:

```
/p remove Steve
```

***

#### `/p promote <player>`

Promotes a member to the next rank: Member → Admin → Secondary Owner.

| Requirement    | Details                  |
| -------------- | ------------------------ |
| Permission     | `amplprotections.use`    |
| Must be inside | A protected region       |
| Who can use    | Owner or Secondary Owner |
| Cannot promote | Beyond Secondary Owner   |

Example:

```
/p promote Steve
```

***

#### `/p demote <player>`

Demotes a member to the previous rank: Secondary Owner → Admin → Member.

| Requirement    | Details                  |
| -------------- | ------------------------ |
| Permission     | `amplprotections.use`    |
| Must be inside | A protected region       |
| Who can use    | Owner or Secondary Owner |
| Cannot demote  | Beyond Member            |

Example:

```
/p demote Steve
```

***

#### `/p members`

Lists all members of the current protection with their ranks.

| Requirement    | Details               |
| -------------- | --------------------- |
| Permission     | `amplprotections.use` |
| Must be inside | A protected region    |

***

#### `/p flag <flag> <level>`

Changes the permission level of a flag for the current protection.

| Requirement    | Details                                                |
| -------------- | ------------------------------------------------------ |
| Permission     | `amplprotections.use`                                  |
| Must be inside | A protected region                                     |
| Owner check    | Yes — only the owner or `amplprotections.admin.bypass` |

**Available levels:** `NONE`, `OWNER`, `MEMBERS`, `ADMINS`, `EVERYONE`

**Available flags:** `pvp`, `mob-damage`, `mob-spawn`, `tnt`, `explosions`, `entity-damage`, `potion-splash`, `block-break`, `block-place`, `leaf-decay`, `fire-spread`, `fire-damage`, `fire-ignite`, `crop-trample`, `ice-melt`, `snow-melt`, `lava-flow`, `water-flow`, `soil-dry`, `use-doors`, `use-switches`, `use-chests`, `use-crafting`, `use-animals`, `use-portals`, `use-beds`, `use-villager`, `frame-rotate`, `frame-break`, `armor-stand-edit`, `painting-break`, `vehicle-place`, `vehicle-break`, `item-drop`, `item-pickup`

Examples:

```
/p flag block-break MEMBERS
/p flag pvp NONE
/p flag use-chests EVERYONE
```

***

#### `/p view`

Shows the protection boundaries using particles and glow effects.

| Requirement    | Details               |
| -------------- | --------------------- |
| Permission     | `amplprotections.use` |
| Must be inside | A protected region    |

***

#### `/p list`

Opens a GUI showing all protections you own with teleport options.

| Requirement | Details               |
| ----------- | --------------------- |
| Permission  | `amplprotections.use` |

***

#### `/p buy`

Opens the protection shop GUI where you can purchase protection blocks.

| Requirement | Details                                 |
| ----------- | --------------------------------------- |
| Permission  | `amplprotections.use`                   |
| Economy     | Costs apply if Vault economy is enabled |

***

#### `/p merge`

Opens the merge GUI to fuse adjacent protections into a larger region.

| Requirement    | Details                                                |
| -------------- | ------------------------------------------------------ |
| Permission     | `amplprotections.use`                                  |
| Must be inside | A protected region                                     |
| Owner check    | Yes — only the owner or `amplprotections.admin.bypass` |
| Config         | `merge.enabled` must be `true`                         |
| Economy        | Merge cost applies if economy is enabled               |

***

#### `/p preset [apply|create|delete] [name]`

Manages flag presets for quick configuration.

| Subcommand                | Description                                | Permission                      |
| ------------------------- | ------------------------------------------ | ------------------------------- |
| `/p preset`               | Opens the preset selection menu            | `amplprotections.use`           |
| `/p preset apply <name>`  | Applies a preset to the current protection | `amplprotections.use`           |
| `/p preset create <name>` | Creates a custom preset from current flags | `amplprotections.preset.create` |
| `/p preset delete <name>` | Deletes a custom preset                    | `amplprotections.use`           |

| Requirement    | Details                    |
| -------------- | -------------------------- |
| Must be inside | A protected region         |
| Owner check    | Yes — for apply and create |

**Built-in presets:** `public`, `private`, `friends`

Examples:

```
/p preset
/p preset apply public
/p preset create mypreset
/p preset delete mypreset
```

***

#### `/p hologram`

Toggles the floating hologram display above the current protection.

| Requirement    | Details                                                |
| -------------- | ------------------------------------------------------ |
| Permission     | `amplprotections.hologram.toggle`                      |
| Must be inside | A protected region                                     |
| Owner check    | Yes — only the owner or `amplprotections.admin.bypass` |
| Config         | `holograms.enabled` must be `true`                     |

***

#### `/p rent [set|cancel|info]`

Manages protection rentals.

| Subcommand                   | Description                                          | Who can use                |
| ---------------------------- | ---------------------------------------------------- | -------------------------- |
| `/p rent`                    | Opens rental menu (owner) or accepts rental (renter) | Anyone inside a protection |
| `/p rent set <price> <days>` | Lists the protection for rent                        | Owner only                 |
| `/p rent cancel`             | Cancels the active rental                            | Owner or renter            |
| `/p rent info`               | Shows rental details                                 | Anyone inside a protection |

| Requirement | Details                         |
| ----------- | ------------------------------- |
| Permission  | `amplprotections.use`           |
| Config      | `rental.enabled` must be `true` |
| Economy     | Rental price and tax apply      |

Examples:

```
/p rent set 100 7
/p rent cancel
/p rent info
```

***

#### `/p rollback [player|all|preview] [minutes]`

Reverts block changes within a protection. **Admin only.**

| Subcommand                            | Description                              |
| ------------------------------------- | ---------------------------------------- |
| `/p rollback`                         | Opens the rollback GUI                   |
| `/p rollback player <name> <minutes>` | Reverts changes by a specific player     |
| `/p rollback all <minutes>`           | Reverts all changes in the time period   |
| `/p rollback preview <minutes>`       | Shows how many changes would be reverted |

| Requirement    | Details                                        |
| -------------- | ---------------------------------------------- |
| Permission     | `amplprotections.rollback.admin` (default: op) |
| Must be inside | A protected region                             |
| Config         | `rollback.enabled` must be `true`              |

Examples:

```
/p rollback player Steve 60
/p rollback all 120
/p rollback preview 30
```

***

#### `/p debug [flag] [level]`

Shows detailed debug information about the current protection and your permissions.

| Requirement    | Details                                              |
| -------------- | ---------------------------------------------------- |
| Permission     | `amplprotections.admin.bypass` or operator           |
| Must be inside | A protected region (shows "no protection" otherwise) |

Examples:

```
/p debug
/p debug block-break
/p debug block-break MEMBERS
```

***

### Admin Commands (`/aprot`)

#### `/aprot`

No arguments. Shows the admin help menu.

| Requirement | Details                     |
| ----------- | --------------------------- |
| Permission  | `amplprotections.admin.use` |

***

#### `/aprot give <player> <type>`

Gives a protection block item to a player.

| Requirement | Details                     |
| ----------- | --------------------------- |
| Permission  | `amplprotections.admin.use` |
| Target      | Must be an online player    |

**Available types:** Defined in `blocks.yml` (default: `carbon_protector`, `iron_protector`, `diamond_protector`, `emerald_protector`)

Example:

```
/aprot give Steve diamond_protector
```

***

#### `/aprot list`

Opens the admin panel GUI showing all protections on the server with search and teleport.

| Requirement | Details                               |
| ----------- | ------------------------------------- |
| Permission  | `amplprotections.admin.use`           |
| Player only | Yes — cannot be executed from console |

***

#### `/aprot info`

Shows technical audit information about the protection you are standing on.

| Requirement | Details                     |
| ----------- | --------------------------- |
| Permission  | `amplprotections.admin.use` |
| Player only | Yes                         |

***

#### `/aprot delete`

Deletes the protection you are standing on without dropping the item.

| Requirement | Details                                             |
| ----------- | --------------------------------------------------- |
| Permission  | `amplprotections.admin.use`                         |
| Player only | Yes — must be standing on a protection center block |

***

#### `/aprot reload`

Reloads all configuration files (`config.yml`, `blocks.yml`, `admin-menu.yml`, all menu configs, and language files).

| Requirement | Details                     |
| ----------- | --------------------------- |
| Permission  | `amplprotections.admin.use` |

#### `/aprotmigrate psstones`

Migrate all protections from PsStones Plugin to AmplProtections

| Requirement | Details                 |
| ----------- | ----------------------- |
| Permission  | `amplprotections.admin` |
