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

item.getDisplayName does not include color codes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • 1.16.1
    • Yes

      In my plugin i have to check if an item name is equal to a config string.

       

      private static List<String> sorter_names =  new ArrayList<>(Arrays.asList(sorter_primaryname));
      ...
      return sorter_names.contains(item.getItemMeta().getDisplayName());

       

      It has always worked well. But now all strings from the config have §r prefix in them.

            Unassigned Unassigned
            poiNt_3D Jumpin Carrot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: