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

# Permisos

El sistema de permisos de **CMRankups** es súper directo. Te mostramos cómo dar permisos administrativos a tu staff y cómo se conecta el plugin con LuckPerms para saber en qué rango está cada jugador.

***

## Permisos del Plugin

Solo hay un permiso administrativo del cual preocuparse:

| Permiso           | ¿Qué permite hacer?                                                                                        | Por defecto     |
| ----------------- | ---------------------------------------------------------------------------------------------------------- | --------------- |
| `cmrankups.admin` | Te da acceso a todos los comandos administrativos (`/cmrankups`) y activa el autocompletado con tabulador. | Operadores (OP) |

*Nota:* Los comandos básicos `/rankup`, `/ranks` y `/ru` **no tienen ningún permiso** asociado por defecto. Esto es así para que todos tus jugadores puedan abrir el menú y subir de rango sin problemas desde el primer día.

***

## ¿Cómo sabe el plugin el rango de cada jugador? (LuckPerms)

El plugin detecta el progreso de los jugadores mediante los permisos de grupo de LuckPerms:

1. **La lógica que sigue el plugin:**
   * Cada rango configurado en tu `rankups.yml` tiene un grupo de LuckPerms asignado (por ejemplo, `luckperms_group: "a"`).
   * Para calcular en qué rango está el jugador actualmente, el plugin busca cuál es el rango más alto en la lista `rank_order` para el cual el jugador tenga el permiso **`group.<nombre_de_grupo>`** (en este caso, `group.a`).
   * Si el jugador tiene los permisos de los grupos `a` y `b`, el plugin entenderá que su rango actual es el `B` y que el siguiente al que puede subir es el `C`.
2. **Consejo de configuración:**
   * Te sugerimos configurar la herencia en LuckPerms para que tus rangos superiores hereden los permisos de los rangos inferiores (ejemplo: que el rango `b` herede del rango `a`).
   * **CMRankups** se adapta perfectamente a este sistema: detectará que el jugador tiene ambos permisos de grupo y automáticamente elegirá el más alto según el orden de tu lista.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://notnaxito.gitbook.io/notnaxito-docs/permisos.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
