Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

New Placeholder to lang

Open itsme-to opened this issue 9 months ago • 3 comments

Feature description

Add a new placeholder for lang message that return the player name, not displayname.

How the feature is useful

Really usefull to make clickable button like, tpa accept, tpa cancel,... Otherwise the commands cannot be executed if the person has a nick, a colored name or a prefix. Example, it's try "/tpaaccept &c[Admin] Itsme_to"

itsme-to avatar May 01 '24 23:05 itsme-to

isn't it already available? "{USERNAME}" https://essentialsx.net/wiki/Keywords.html#:~:text=player%27s%20display%20name.-,%7BUSERNAME%7D,-The%20player%27s%20username

nobthreeonesix avatar May 02 '24 05:05 nobthreeonesix

Not for messages CleanShot 2024-05-02 at 11 09 21

itsme-to avatar May 02 '24 09:05 itsme-to

Not for messages CleanShot 2024-05-02 at 11 09 21

my bad. i thought they're also available for language files. im sorry.

nobthreeonesix avatar May 02 '24 09:05 nobthreeonesix

Message files use a completely different setup for the placeholders. if you need it to be a username, disable change-displayname in the config.

Evidentsinger14 avatar Jul 01 '24 20:07 Evidentsinger14

This does not fix the problem, so people can no longer have a nickname

itsme-to avatar Jul 01 '24 20:07 itsme-to

You will have to reconfigure your chat format to use {NICKNAME} if that's what you're referring to.

Evidentsinger14 avatar Jul 01 '24 20:07 Evidentsinger14

No, I mean any nick plugin or other that change the display name will break the clickable message/

itsme-to avatar Jul 02 '24 19:07 itsme-to

Not if you do what I just told you to do. EssentialsX will only use the username.

Evidentsinger14 avatar Jul 02 '24 19:07 Evidentsinger14