LuckPerms

LuckPerms

41.4k Downloads

Add PlaceholderAPI support to meta (prefix/suffix)

InsideIntel opened this issue ยท 1 comments

commented

Description

I feel like there should be a way to add placeholders from PlaceholderAPI into the prefixes of the groups.
I just want to be able to do this so it's easy for me and I've seen some people ask for this before, hopefully this gains support and I hope you have a good day!

Proposed Behaviour

Like if I were to do /lp group farmer meta setprefix 1 "%oraxen_farmer_tag%", it would use the placeholder and it would return something like this:
image

Note: This uses a texture pack that allows me to edit characters (Oraxen specifically).

Also, if I were to add something like %server_tps% that would return the 1, 5, and 15 tps times like it should if PlaceholderAPI was supported in prefix, anything really.

Extra Details

No response

commented

Placeholder support inside the prefix/suffix must be handled by the plugin fetching them (tab/chat/scoreboard etc plugins), LuckPerms performs no stylistic rendering on them, it will provide the prefix/suffix "as-is" exactly as stored, the same ideas outlined in here for style format also apply for placeholder resolution or any other kind of resolving.