Why is the tray not displayed correctly?

Jo
- in Plugins
16

I'm currently programming a Minecraft plugin, which among other things contains the rank display in the tablist.

This works one-way, but the ranks are displayed differently depending on the player.

The following is displayed for my 1st account:

Admin | NAME1
Admin | NAME2

With my 2nd account, which actually has the group "SrDev", the following is displayed:

SrDev | NAME2
Players | NAME1

I've tried several methods to fix this problem, but I can't come up with a solution.

Here is the source code of the class:

Sy

Haste Pex or luck perms?

Jo

I use PermissionsEx

Sy

Does your plugin work with Pex?

Jo

Jap.

Sy

Have Pex and the plugin on the server and are both activated?

Jo

Yes. Both are on the server with the latest version and work without problems or are also activated.

Sy

You also need Vault otherwise you can't have it?

Jo

What do I need Vault for? PermissionsEx also works without and the 2nd plugin we own is programmed by ourselves, so that no vault is required. If I have forgotten anything that Vault needs, please point it out.

Sy

So I had the same problem with Pex and sTablist when I had vault. If you give someone a new rank updater you then in the tablist?

Jo

The player is kicked by the server when the rank changes. Thus the rank is set with the "onJoin" method.

Sy

Strange do you see the new rank in the tablist?

Jo

The player who has the rank yes. My other account showed both accounts as "Admin" (even after a rejoin & server restart). With the other account, he is himself e.g. SrDev appears (if he has this rank) and the other as "player".

Sy

Funny then I do not know why it sry good luck that still 😊

Br

The ranks may not load as quickly. Try to add 5 ticks of cooldown between joining and placing or try to get the ranks with a permission instead of a group from PermissionsEX.

So with player.hasPermission ("…");

Jo

I accidentally let the player show all players as owners in a row in the group queries at Owner. So I wrote "p" instead of "all". Stupid of me, but it works now.

Br

Okay, yes, sometimes the simplest mistakes are made.