How to display the correct LuckPerms prefix per player in leaderboards, death messages and achievements?

U

/u/Spleiter75

Guest
Hey ,

I'm trying to display the correct LuckPerms prefix for each individual player in various contexts on my server, but I keep running into the same core problem.

The problem is `%luckperms_prefix%` always returns the prefix of the viewer not the prefix of the player being displayed. This causes issues in three specific cases:


  1. Leaderboards Every entry in the hologram shows my own prefix instead of the prefix of the respective player.


  2. Death Messages When a player dies, the death message shows the prefix of whoever is reading it, not the prefix of the player who actually died.


  3. Achievements Same issue: broadcast messages show the wrong prefix.

I've looked into `%rel_luckperms_prefix%` but it turns out LuckPerms doesn't actually support relational placeholders.

What I want:

#1 [Admin] PlayerA

#2 [VIP] PlayerB

[Mod] PlayerC was slain by a Zombie

[Mod] PlayerC was slain by [Admin] PlayerA

[VIP] PlayerD just completed an achievement!

Is there a universal solution or recommended approach to correctly resolve a specific player's prefix in these contexts? Any plugin suggestions or workarounds are welcome!

Thanks in advance!

submitted by /u/Spleiter75
[link] [comments]

Continue reading...
 
Back
Top