Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4442

Inventory#getTitle actualy ignores some colors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • Windows 10, developing in LAN.

    • spigot-1.13.2-R0.1-SNAPSHOT-b1963
    • Yes

      Issues with inventory titles recently had been popular because of Vanilla's bug.

      This issue is not related to Vanilla I belive. I will explain everything in steps:

      1. I have String variable i.e. str = "&0&lHello"
      2. I'm translating this using ChatColor class into str = Hello
      3. now will create inventory inv = Bukkit.createInventory(blah blah blah) <- in this step I'll normally put inventory title (my str variable)
      4. Now inv.getTitle() will return Bolded white text Hello
      5. It is not even white text. It doesn't have any color modifier, text is left with only &l

      This bug only works with &0 color (I also tried using ChatColor.BLACK instead - same effect) Other colors I have tested (sea blue, grey, blue etc.) are working fine.

            Unassigned Unassigned
            FlrQue Devs Daniel Wasiak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: