Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder for group prefix unrelated to inheritance #32

Open
ZeromaniacMc opened this issue Mar 27, 2022 · 1 comment
Open

Placeholder for group prefix unrelated to inheritance #32

ZeromaniacMc opened this issue Mar 27, 2022 · 1 comment

Comments

@ZeromaniacMc
Copy link

ZeromaniacMc commented Mar 27, 2022

Based on a conversation on discord, I'd like to propose a new placeholder to display prefixes unrelated to inheritance.

With currently existing placeholders, it is impossible to parse a placeholder which a user does not directly or indirectly inherits.
Example: I have group.owner but owner does not inherit from default, so using %luckperms_prefix_element_highest_from_group_default% will return empty for me. Now if I let the owner group inherit from default, the prefix shows up. The same thing applies to track-based placeholders: if the user is not on the track I try to display the prefix from, the placeholder returns empty.

Don't get me wrong, I do get why this is. Regardless, I agree with the user from discord that it could come in very handy if there was a placeholder that returned the prefix regardless of connectivity through inheritance, such as for example displaying them in menus.
It could look like this for example: %luckperms_static_prefix_highest_from_group_<group>% : Returns the highest weighted prefix from specified group regardless if the user inherits it or not.

Please consider adding this. Inheriting across tracks may not always be the best solution to make the placeholder work.

@SenPr
Copy link

SenPr commented Sep 13, 2022

+1 for this, this is quite useful for stuff like displaying ranks names in menus as requirements or item names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants