# Ranks / prefixes

![](/files/VcrSlBSxIfq0ZaqbbUAK)

{% 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 %}

### Download the example ranks here

{% embed url="<https://www.spigotmc.org/resources/ranks-betterranks-with-custom-textures-for-itemsadder.84852/>" %}

## Create a rank

Open `contents/betterranks/configs/ranks.yml` file and **copy** and **paste** one of them.\
Then rename it to your rank, also decide a new **.png** file name, for example `custom`.

### Configuration

```yaml
  custom:
    permission: "ranks.custom"
    show_in_gui: true
    suggest_in_command: false
    path: "custom.png"
    scale_ratio: 9
    y_position: 8
```

{% hint style="warning" %}
Don't change `scale_ratio` and `y_position`. It would make the ranks look pixelated.
{% endhint %}

### Image

**Copy** one of my ranks **.png** files and edit it from folder `contents/betterranks/textures/`\
\
You can edit it using **Photoshop**, **GIMP**, **Paint.NET** or any other editing software you use.\
For example copy `admin.png`, name it `custom.png` and edit it.

{% hint style="danger" %}
**Don't change the rank image height!**\
**Change only the width or the image will look pixelated!**
{% endhint %}

### Example

For example in order to make a similar rank to my **BetterRanks** addon you just have to use the [Minecraftia ](https://www.dafont.com/andrew-tyler.d2526)font and cut some pixels.

![](/files/RKmKZ5KRO1J8hM3V0ar1)

![](/files/NEOLjvAWD3y7bCLJQCMn)

![](/files/9Lo0NP1rLaJ5bmjSv4j4)

![](/files/xCQoJ1hDTAUGQ81sYcwx)

## Using the rank ingame

### Luckperms

#### Creating a group, example (admin)

Use this command `/lp creategroup admin`

#### Add the prefix

Use this command to get the editor: `/lp editor`\
Now click on the link and open the web editor.

Select the role, in this case `admin`.

![](/files/qXHAh2D8g1pVZ8prDFEx)

Write `prefix.100.` followed by the prefix placeholder in the bottom input box, in this example I will use `:admin:`

`prefix.100.:admin:` (make sure you write it correctly).

![](/files/rr2Xl9vofPb4o1kHodIa)

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

![](/files/2NzypuYizXwrCiLLdaSu)

As you can see you have a new line in the permissions list, this is the prefix setting.

![](/files/mU4OlZjtfhBuylJZvKax)

Now save your changes

![](/files/7gv6I7k1xPbKZWkK09GO)

#### Assign the group to a player

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

![](/files/1QZAupU12hCP64EMGhhG)

### TAB plugin

{% hint style="warning" %}
Make sure you installed [PlaceholderAPI](https://github.com/LoneDev6/Wiki-ItemsAdder/blob/japanese/plugin-usage/adding-content/broken-reference/README.md)
{% 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`

![](/files/gfptq8E07ZiZ2vvLx6bk)

![](/files/WIOEk381d3Udlf0gbxsB)


---

# 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://itemsadder.devs.beer/japanese/plugin-usage/adding-content/ranks-prefixes.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.
