Patbox / StyledNicknames

Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
GNU Lesser General Public License v3.0
12 stars 8 forks source link

Nicknames to mirror Player Name Tag? #19

Open Dumpling00 opened 8 months ago

Dumpling00 commented 8 months ago

Could we have an option to change our name plate to whatever the nickname currently displayed is? This could be great if made to work with Switchy as well, for better RP immersion.

Thank you for your time and consideration.

arnokeesman commented 8 months ago

you can use senseiwells/CustomNameTags to get the nickname above players

to me it looks like switchy already uses this mod for nicknames, what is in your eyes missing there?

Dumpling00 commented 8 months ago

you can use senseiwells/CustomNameTags to get the nickname above players

to me it looks like switchy already uses this mod for nicknames, what is in your eyes missing there?

The problem here is that, thanks to Switchy, any given user can have a bunch of different character presets, all with their own unique nicknames, but the player itself will still hold their default name tag. The solution you have described, as I understand it, wouldn't work for the different presets as it would simply just always display X instead of Y.

I would like a function that could simply apply the nickname of the current player preset to the nametag, so that it would change automatically every time a character switch happens.

arnokeesman commented 8 months ago

you can configure it however you want, so also to take the current nickname

Dumpling00 commented 8 months ago

you can configure it however you want, so also to take the current nickname

May I please have more information on this?

arnokeesman commented 8 months ago

this could be your CNT config


{
  "name_tags": [
    {
      "id": "default:nick",
      "update_interval": 20,
      "literal": "%styled-nicknames:display_name%"
    }
  ]
}
Dumpling00 commented 8 months ago

this could be your CNT config

{
  "name_tags": [
    {
      "id": "default:nick",
      "update_interval": 20,
      "literal": "%styled-nicknames:display_name%"
    }
  ]
}

Okay so just to be sure, in the "default:nick" field, I have to replace that with the nickname of the character preset, and in "literal" I have to replace that whole string with what I want the display name to be?

arnokeesman commented 8 months ago

default:nick (the id field) is just a name you can use in commands to target this displayname, really shouldn't matter what it is, no-one will use or even see it the literal is what you want displayed above the player yeah, in this case their nickname, or when it doesn't exist just their name

Dumpling00 commented 8 months ago

I'm sorry but nothing seems to work. It doesn't help that I can't normally see my nametag without the use of other mods which might interfere or override this.

sisby-folk commented 7 months ago

@Dumpling00 you want Fabrication's use_player_list_name_in_tag - should work out of the box - have fun!

HoldYourWaffle commented 2 months ago

you can use senseiwells/CustomNameTags to get the nickname above players

Is there a specific reason for not including this functionality with styled-nicknames itself? Based on a quick gander at CNT's source code I suspect this might be much more complex than I'd expect, though that could also just be CNT's more advanced feature set.