LuckPerms

LuckPerms

41.4k Downloads

luckperms placeholder api Expansion doesn't copy full prefix

AK8221 opened this issue ยท 4 comments

commented

Description

placeholder seems to be ignoring some color codes depending on the worlds/letters before it

Reproduction Steps

Capture
Capture1
Capture2
Capture3
Capture4
Capture5
Capture6
Capture7
Capture8
Capture9

I believe it is a culprit of the luck perms placeholder Expansion as in deluxe hub all I need to do is set the placer holder and it works, that and when I speak in chat the prefix shows up just fine

Expected Behaviour

for it to not show the color code in the prefix at all
Capture
Capture1
Capture2

Server Details

git-paper-387 mc 1.18.2

LuckPerms Version

LuckPerms-Bukkit-5.4.21

Logs and Configs

No response

Extra Details

PlaceholderAPI-2.11.
Expansion-luckperms.zip
2

commented

The Luckperms expansion itself is not responsible for interpreting/adding colors. The software behind this is Placeholder API. According to my source, the color interpreting line in Placeholder API was removed. Now, plugins which depended on it doing this for placeholders will no longer work properly. With this I mean chat plugins, tablist ones, and any other which do not do colors on placeholders themselves but until now, depended on PAPI doing that as it did for a long time. It is argued that parsing colors is 'out of scope' for PAPI regardless of that it had been doing it until now. So the issue is with Deluxehub having relied on PAPI's translation of alternate color codes which breaks now since that was removed.
Again, you can downgrade PAPI or ask the developer of Deluxehub to start translating colors him/herself.
LuckPerms and the expansion may be the ones getting the raw data, but LuckPerms never touched displaying anything. This is why you need a chat plugin to display prefixes in chat and so forth - it just does not touch this for other plugins to freely use the formats they need.
https://github.com/PlaceholderAPI/PlaceholderAPI/releases/tag/2.11.2

commented

This is not a problem on LuckPerm's side. LuckPerms saves prefixes and suffixes as you add them, it will not apply color codes or formatting whatsoever. This is the job of other plugins which display this data, for example chat and tablist ones.
I had this very same problem when I tried PlaceholderAPI 2.11.2. They did something with color interpretation. Downgrading to 2.11.1 fixed this for me. You should ask PAPI support why this happens if you rather keep the latest version of it and aim to fix this.

commented

yes but placeholder api it self is not able to hook into it witch is why you use Expansion-luckperms.zip
witch is handled by luckperms (by handled i mean owned/maintained by the same team... unless I'm wrong if so correct me)

commented

Most likely an issue with the scoreboard plugin.