LuckPerms

LuckPerms

41.4k Downloads

Multiple Prefixes

lcovey22 opened this issue ยท 9 comments

commented

So I have prefixes assigned by groups on a single track, with 8 groups, and their prefixes ranging from 1 to 8. I have a feature on my server "titles" which uses LuckPerms to add a prefix on top of the user's group prefix and to replace it. But when I add this, it just adds on. So if they were [Member] then bought [King] title the end result would be '[Member] [King] user: chat' which isn't what I want, solely the [King] title. I am using "highest" as the option for prefix stacking. Here is my config, and .yml file for the User and Group. I tried to include as much info as possible, if more is needed let me know. Thanks for the great plugin!

commented

If you're using "highest", then only one value will be used.

Perhaps the extra prefix is being added by your chat plugin?

commented

I'm using Towny chat, and it's fairly clear to me that it's not causing the problem but rather that LuckPerms is reading two of my prefixes, sorry for the late reply but please don't keep this issue closed.
My towny configuration for chat is:
global: '{permprefix}&7{modplayername} {towntag}:' and I can't see how this would add a second prefix unless I'm using the wrong towny chat+LuckPerms placeholder. Appreciate the help,
Luc

commented

Try removing the permprefix part.

commented

Actually no, this is a Towny bug.

https://github.com/ElgarL/Towny/blob/master/src/com/palmergames/bukkit/towny/permissions/VaultPermSource.java#L21-L57

https://github.com/ElgarL/TownyChat/blob/master/src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java#L143-L148

{permprefix} will include both the players own prefix, and the prefix of their primary group. Nothing to do with LuckPerms.

I suggest you switch to a chat formatting plugin which works. There's a list of suggestions here:
https://github.com/lucko/LuckPerms/wiki/Prefixes,-Suffixes-&-Meta#displaying-prefixes-and-suffixes

commented

Hi. I have this problem.
image
image
I have already tried to remove the %prefix in the chat ex, the result is the second and third lines.
Appreciate the help!

commented

It works like this if user have few perm groups or if use tracks

commented

Please open a new issue.

commented

still an on-going issue with latest townychat version & this, if anyone is still tracking this issue

commented

Please open a new issue.
And follow the issue template with explain of how luckperms is potentially causing such an issue.