PluginBugs / Issues-CosmeticsCore

Repository used to keep track of issues of my plugin CosmeticsCore
https://lonedev.gitbook.io/cosmeticscore/
0 stars 0 forks source link

Hex colors don't work in cosmetics #238

Open Javimoa95 opened 2 weeks ago

Javimoa95 commented 2 weeks ago

Terms

Discord tag (optional)

raptorcroissant

What happened?

I tried to enter a hex color and it doesn't show like it should image

Steps to reproduce the issue

  1. Create a hat cosmetic
  2. Enter a hex as a display name (any kind: mini, &#, & etc)
  3. Reload cosmetics config
  4. Voilá, it shows exactly like you typed it and it doesn't convert it to hex

Server version

Captura de pantalla 2024-06-13 a las 12 48 11

CosmeticsCore Version

Captura de pantalla 2024-06-13 a las 12 48 25

ProtocolLib Version

Captura de pantalla 2024-06-13 a las 12 48 39

LoneLibs Version

Captura de pantalla 2024-06-13 a las 12 48 54

FULL server log

https://mclo.gs/Jj61Zqy

Error (optional)

No response

CosmeticsCore config.yml

cosmetics:

  # Example custom Item created by ItemsAdder
  summerhat1:
    display_name: "<bold><gradient:#084CFB:#DDFF1A>Swim Goggles</gradient></bold>"
    type: HAT
    model:
      gui: summerhats:summerhat1
      normal: summerhats:summerhat1
    dye:
      enabled: false # To avoid this item from being colored.

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

Javimoa95 commented 2 weeks ago

Sorry, I missread. Here is the config.yml

lang: en
extract_default_assets: true
cosmetics:
  max_equippable:
    body: 3
    balloon: 2
  hide_during_combat:
    enabled: true
    combat_duration_ticks: 600
  fix_invisible_nametag: false
  hide_in_vanish: true
  worlds:
  - '*'
wardrobe_room:
  camera:
    hide_actionbar_texts: true
    use_invisibility_potion: false
    rotation:
      enabled: true
    zoom:
      enabled: true
      min: 2
    fade_effect: true
    location:
      world: summerspawn
      x: 44.27702298075087
      y: 64.62000000476837
      z: -49.13264772388671
      yaw: 72.05875
      pitch: 3.7498994
  mannequin:
    location:
      world: summerspawn
      x: 42.38941979683831
      y: 63.0625
      z: -48.21436267923598
      yaw: -121.73889
      pitch: 4.800023
  teleport_area:
    enter:
      world: summerspawn
      pos1:
        x: 45
        y: 63
        z: -48
      pos2:
        x: 45
        y: 63
        z: -49
    exit_location:
      world: summerspawn
      x: 53
      y: 63
      z: -45
      yaw: -97.9
      pitch: 12.3
  gui:
    cursor_default: fermented_spider_eye:9000001
    cursor_rotate: fermented_spider_eye:9000002
    cursor_pointer: fermented_spider_eye:9000003
    dyeing_pointer: fermented_spider_eye:9100003
    tutorial_gui: fermented_spider_eye:9100004
    tutorial_gui_checked: fermented_spider_eye:9100005
    slots:
      colors:
        not_owned: 195,147,57
        owned: 56,67,100
        wearing: 57,70,195
        wearing_preview: 195,120,57
        max_amount_reached: 111,111,111
      add_item_in_blank_slots:
        # This is useful only for some expert users that need to do some crazy stuff.
        # Do not enable it if you don't know what you are doing.
        enabled: false
        type: PAPER
        custom_model_data: 1337666
send_creative_hidden_hat_message: true
save:
  # Use only one at a time
  file:
    enabled: true
  mysql:
    enabled: false
    url: jdbc:mysql://my_url_database_69.com:3306/database_name
    username: username
    password: password
    table: cosmeticscore_saved
debug: false