EssentialsX

EssentialsX

2M Downloads

Option to display either username or display name in messages

Opened this issue ยท 3 comments

commented

Hello,

Can u create in the new essentialsX update that not will been used the displayname for ' "displayname" has teleported to you'.

I use a prefix before the playername and that will be show before the playername in that messages.

For example: '[rookie] aeadnerr has teleported to you'

Can u set that to the playername and not to the displayname?

Best regards
Thibaud

commented

Slight necro, but a realistic implementation of this could be to have a User#getMessagesName method which returns either the username or displayname of the user as set in the config to be used in tl calls.

commented
commented

I don't think that it would be particularly easy to implement any way of supporting both simultaneously, since the messages currently substitute whatever string is passed to the tl method. Since in most cases the display name is passed, we'd need to add a condition to every use of translated messages which substitutes in player names, which is quite a lot of places.