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

# Demotion/Promotion

### Promotion

Promoting a user on a track is fairly simple: You need to provide the user to promote and the track to promote them on.

{% hint style="warning" %}
Note that promoting a user on a track when they already have the highest group on the track will do nothing.
{% endhint %}

Consider this example:

```genie
set {_lp} to luckperms user from player
edit user {_lp}:
    promote along track "staff"
send "You were just promoted!" to player
```

### Demotion

Demoting a user on a track is just like promoting a user: You need to provide the user to demote and the track to demote them on.

{% hint style="warning" %}
Note that demoting a user on a track will do nothing if they don't have a group that is on the track.
{% endhint %}

Consider this example:

```genie
set {_lp} to luckperms user from player
edit user {_lp}:
   demote user along track "staff
send "You were just demoted!" to player
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://skript-luckperms.gitbook.io/skript-luckperms/tracks/demotion-promotion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
