Matt-MX / DisplayNameTags

Replace boring old nametags with Display Entities!
MIT License
8 stars 0 forks source link

Legacy color codes #18

Closed potatoru closed 1 day ago

potatoru commented 3 days ago

Hi! Legacy color codes from placeholders won't work.

Untitled

defaults:
  # If not enabled then plugin simulates vanilla name tags
  enabled: true
  text:
    - "%luckperms_meta_cm_group_prefix%<white>%player_name%</white>"
  background: black
  billboard: center
  text-shadow: true
  range: default
  gap: 0.2
Matt-MX commented 3 days ago

Currently the plugin only supports MiniMessage formatting.

Perhaps adding a config option to change your preference is possible.

Matt-MX commented 3 days ago

I've added support for legacy and minimessage formatting via a config option. If you could test the latest dev build and get back to me thatd be awesome.

https://github.com/Matt-MX/DisplayNameTags/actions/runs/11238554365

potatoru commented 2 days ago

Cool thanks! It works now.

potatoru commented 2 days ago

New option remove-empty-lines is very handy, but it removes non-empty lines.

  text:
    - "%cmi_user_afk_symbol%"
    - "%simpleclans_clan_name%"
    - "%luckperms_meta_cm_group_prefix% &r%cmi_user_nickname%"

When enabled 1

When disabled 2

Matt-MX commented 2 days ago

@potatoru It should be working correctly now, please test latest dev build once more:

https://github.com/Matt-MX/DisplayNameTags/actions/runs/11253601246

potatoru commented 2 days ago

Now it works as expected.

The only thing is that the nickname is displayed a little different. It seems that it does not support RGB colors.

1 2

Matt-MX commented 1 day ago

Fixed in https://github.com/Matt-MX/DisplayNameTags/actions/runs/11272738979