1.16.5 Get inventory title with hex color

Discussion in 'Spigot Plugin Development' started by PieHater25, Jun 20, 2021.

  1. How can I get an inventory title that includes hex colour?
    Every inventory method to getTitle always returns String, which I'm assuming doesn't give me hex colour.
     
  2. md_5

    Administrator Developer

    You assumed wrong
     
    • Like Like x 1
  3. The other questions is why do you need it? Comparing a display component to determine which inventory is opened is flawed and not recommended.
     
  4. I'm migrating the old plugin to the new version, the old plugin has feature blacklists certain container name.
     
    #4 PieHater25, Jun 20, 2021
    Last edited: Jun 20, 2021
  5. Okay, I figure it out, thanks to md5.ChatColor exception output the plain format.