LuckPerms

LuckPerms

41.4k Downloads

Lower case names

Ergenta opened this issue ยท 13 comments

commented

Whenever I create a group, it defaults the name to lowercase. Is there a way to remove this feature so the name can be capitalized?

commented

Just set a display name.

/lp group admin setdisplayname Admin

commented

The display name doesn't work when using Ezrankspro rank up system. Is there no way to make it actually capitalized? Just seem odd it will force into lowercase.

commented

It's forced to lowercase because group identifiers are case insensitive in LuckPerms. It's significantly easier to force all identifiers to lowercase, and keep things consistent that way, than to allow entries in mixed case and perform case insensitive lookups throughout the plugin.

There's no reason why EzRanksPro wouldn't support that - Vault methods are unaffected by the change, and will resolve by display name if necessary.

commented

It doesn't. They all display as lowercase

commented

Make sure you're using the latest version.

The Vault methods definitely return display names.

commented

If I manually changed all of the ranks to uppercase, would that mess anything up, functionally?

commented

When I ref to 'display', I mean when you type "/Rankup", the rank shows as lowercase in chat. Ezrankspro has an option to change the actual display of the rank afterwards.

So I'm only ref to when they type /rankup

commented

I'm using the latest vault and it displays as lowercase

commented

Is there some option to put vault as primary display? I'm not seeing it if it's not standard.

commented

If I manually changed all of the ranks to uppercase, would that mess anything up, functionally?

LuckPerms expects names to be in a lowercase format, although it'd probably accept them as uppercase too.

However, as soon as they're loaded into memory, they would be converted back to lowercase - so you'd achieve nothing. As I've said already - they are identifiers, and are not intended to be displayed to end users. That's what display names / prefixes / suffixes are for.

When I ref to 'display', I mean when you type "/Rankup", the rank shows as lowercase in chat. Ezrankspro has an option to change the actual display of the rank afterwards.

That depends entirely on how EzRanksPro is getting its data. You'd be better off trying to speak with the EzChatPro author - they'd have a better insight into how that data is being retrieved and formatted. (and it's premium and closed source - so even if I wanted to, I can't really help you much further.)

commented

Ok, well, lets leave the annoying lowercase letters alone for a minute. I'm trying to display two separate ranks and whenever I add (parent) another rank to the primary rank, only the primary rank is shown. I already have it setup to display two names, I know this because it works with PEX "group add" option.

How do I get the parent ranks to act like the "added" ranks do with PEX so they both show?

commented

Thanks btw for trying to help with this lowercase/parent issue.

commented

I already have it setup to display two names

It depends on how you've done that.