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

ChatPaginator.wordWrap(text, maxLength) only transfers 1 color modifier.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • Spigot updated before sending this issue.

    • 3262-Spigot-dc75aca-f0f801e (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
    • Yes

      When using the ChatPaginator.wordWrap() method only 1 colour modifier is copied over to the next entry. When using this in lore you are required to use the method ChatColor.getLastColors(string) (and stripColor) to fix this issue.

       

      Expected result:

      The whole block of colour modifiers should be copied over to the next entry.

      OR less desirable, don't copy any over any colour modifiers and let developers do it them self. This saves the need for the ChatColor.stripColors on each entry after 0.

            Unassigned Unassigned
            MartenM MartenM
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: