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

item.getDisplayName does not include color codes

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: