# Ranks / prefixes

{% hint style="warning" %}
**You have to use** [**LuckPerms**](https://www.spigotmc.org/resources/luckperms.28140/) **and** [**TAB**](https://www.spigotmc.org/resources/tab-1-5-1-21-4.57806/) **to follow this tutorial, the method may differ if you're using other permissions and TABs plugins.**
{% endhint %}

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-1357a98fea38e27679055cdfa90af95b08ad1bb5%2Fimage%20\(27\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\)%20\(1\).png?alt=media)

Download the example ranks [here](https://www.spigotmc.org/resources/ranks-betterranks-with-custom-textures-for-itemsadder.84852/).

## Create a rank

Create a new file `contents/myranks/config.yml`.

```yaml
font_images:  
  admin:
    permission: "ranks"
    show_in_gui: true
    suggest_in_command: false
    path: "font/admin.png"
    scale_ratio: 9
    y_position: 8
```

{% hint style="warning" %}
Don't change the PNG image height (keep it 8px), do not change `scale_ratio` and `y_position`.\
It would make the ranks look pixelated.
{% endhint %}

### Official tool to create custom ranks

{% embed url="<https://itemsadder.github.io/minecraft-rank-generator/>" %}

<figure><img src="https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-42000c842af1508d5ae8dd1b20920e3d3695ab47%2Fimage.png?alt=media" alt=""><figcaption><p><a href="https://itemsadder.github.io/minecraft-rank-generator/">https://itemsadder.github.io/minecraft-rank-generator/</a></p></figcaption></figure>

Put the image into `contents/myranks/textures/font/admin.png`.

#### Create a group (for example `admin`)

Command `/lp creategroup admin`

#### Add the prefix

Open the editor `/lp editor`.

Click on the link and open the web editor.\
Select the role. In this case `admin`.

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-439a7066ed775422111a3c5604d706a31fd43634%2Fimage.png?alt=media)

Add a new permission:`prefix.100.:admin:` . Change `:admin:` based on your rank name.

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-8139b0f01a4cdea2d6b3e2c32ff629ef13b8e205%2Fimage.png?alt=media)

Press <mark style="color:green;">**`+Add`**</mark>

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-437ebd0ecf212a17c077cd97d99ab63550ab747a%2Fimage.png?alt=media)

You now have a new line in the permissions list, this is the prefix setting.

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-40a74c925468c68d74658c4d12599e3fd5730b27%2Fimage.png?alt=media)

Save your changes.

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-e404050b03906ca9154b0b6359cc1af313695a10%2Fimage.png?alt=media)

#### Assign the group to a player

Use this command (change `LoneDev` to your player name) `/lp user LoneDev group add admin`

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-72a060ca34e4720ccea83dd7b4518f32c7dab0c2%2Fimmagine.png?alt=media)

## TAB plugin

{% hint style="warning" %}
Make sure you installed [PlaceholderAPI](https://modrinth.com/plugin/placeholderapi)
{% endhint %}

#### Editing the config.yml of TAB plugin

**Add** this under the `groups` category or edit it if already exists.\
(You have to use `%img_admin%` instead of `:admin:` because **TAB** recognized only **PlaceholderAPI** placeholders and not **ItemsAdder** placeholders. This can be valid also for **other plugins**)

```yaml
  Admin:
    tabprefix: '%img_admin%  '
    tagprefix: '%img_admin%  '
```

Then use the command `/tab reload`.

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-9660bfd0926395491becc785045813211edbda64%2Fimmagine.png?alt=media)

![](https://708574821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-887967055%2Fuploads%2Fgit-blob-f3b055bb5264d28c75d060a11d7ff9ffee819da6%2Fimmagine.png?alt=media)
