# Permission Protect

{% hint style="warning" %}
Since 1.1.0
{% endhint %}

The permission protect system prevents players from illegally acquiring permissions or changing game modes

### Configuration

**management/config.yml**

```yaml
perm-protect: true
```

**management/perm-protect.yml**

```yaml
# The global operator, bypass all permission checks
operator:
  # The operator names, case-insensitive, not recommend to use for security reasons
  names:
    - ""

  # The operator uuids, you can get uuid at https://mcuuid.net/
  uuids:
    - ""

  # The detection operation allows insert variables into commands
  vars:
    duration: 30d

# The players allowed to get "*" permission
max-permission:
  names:
    - ""

  uuids:
    - ""

  vars:
    duration: 30d

# The players allowed to get core permissions
# About the core permissions, see the wiki page
core-permission:
  names:
    - ""

  uuids:
    - ""

  vars:
    duration: 60d

# The players allowed to have creative game mode
creative:
  names:
    - ""

  uuids:
    - ""

  vars:
    duration: 7d

# The command list to run
# Default variables:
# %player%  - Player name
detection-operation:
  - "ban %player% %duration% Illegal Permission" # The duration variable is defined in the vars block

```

**operator** The operators set by /op command

**max-permission** The players allowed to have "\*" permission

**core-permission** The players allowed to have sensitive permission of the server, see [Core permission](#core-permission)

**creative** The players allowed to change to creative game mode

**names** The player names, case-insensitive, not recommend to use for security reasons

**uuids** The player uuids, you can get uuid at <https://mcuuid.net/>

**vars** Allows insert variables into commands in **detection-operation**

**detection-operation** Command list to execute when detected

### Core permission

Sensitive permissions of the server

```
*
luckperms.*
```


---

# 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://afternode.gitbook.io/general/management/permission-protect.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.
