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

[SUGGEST] Changing (and new) placeholders #44

Open
bandaohana opened this issue Mar 12, 2023 · 1 comment
Open

[SUGGEST] Changing (and new) placeholders #44

bandaohana opened this issue Mar 12, 2023 · 1 comment

Comments

@bandaohana
Copy link

bandaohana commented Mar 12, 2023

!!! this message was translated using translate.google.com, please, if anything is confusing, let me know and I will rephrase the messages !!!

Well, we know that placeholders are essential in pretty much every plugin or server. And well, I'm having a problem with LuckPerms placeholders (and I think a lot of other people are too). The current LP placeholders are great, however, I think they still don't provide some things that I think are essential that could "make a certain difference", or facilitate players who have temporary ranks/roles/groups.

Currently the %luckperms_groups% placeholder returns all the groups the player owns, but randomly or inherited (I honestly don't know which way, apparently it's random for me), which actually should return all the groups the player owns , in order of group weight.

%luckperms_group_expiry_time% requires you to specify which group will be shown, which is fine, but there should be a "%luckperms_highest/lowest_group_expiry_time%", which returns the remaining time of the highest group, this same placeholder also returns only, months or total weeks, and even in English, I don't intend to provide the remaining group time in English based on weeks, this is really confusing for most players in my country

A new placeholder "%luckperms_highest/lowest_group_type%" or "%luckperms_group_type_<group>%" that returns what type of group the player has, permanent or temporary, that would be really interesting.

A new placeholder for dates could also be added, for example "%luckperms_join_date_group%" returns the date the player received such a group (placeholder aliases: %luckperms_join_date_highest/lowest_group% or %luckperms_join_date_group_%)
The same would be for a placeholder that returns the date that a temporary group ends. for example: "%luckperms_end_date_group%. "(placeholder aliases: %luckperms_end_date_highest/lowest_group% or %luckperms_end_date_group_%)

@underscore11code
Copy link
Member

Your final suggestion relating to date placeholders isn't really possible. LP doesn't save when a node was added to a player (and aside from a placeholder like this, there's no real reason for it to), so I doubt that one will happen. Your other suggestions seem reasonable though.

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

No branches or pull requests

2 participants