Pyrbu / ZNPCsPlus

A Spigot plugin for creating interactable fake entities
https://www.spigotmc.org/resources/znpcsplus.109380/
GNU General Public License v3.0
118 stars 30 forks source link

MiniMessages does not work in certain conditions #120

Closed MattyHD0 closed 10 months ago

MattyHD0 commented 10 months ago

When using the /npc holo add command on my npc the MiniMessages formatting works correctly, but when using the set subcommand instead of add, it does not work.

in the following image is shown the npc whose hologram line without formatting use /npc holo set woodcutter_shop 0 <#864C1A><bold>CLICK and for the line that has the formatting use /npc holo add woodcutter_shop <#864C1A><bold>CLICK, as you can see the text is exactly the same, but when using set the corresponding formatting is not applied.

image

Server and Plugin version:

[00:29:21 INFO]: This server is running Pufferfish version git-Pufferfish-40 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 8d20921 on HEAD)

[00:29:32 INFO]: ZNPCsPlus version 2.0.0-SNAPSHOT [00:29:32 INFO]: Authors: Pyr and D3v1s0m

vLuckyyy commented 10 months ago

I fixed this in GH-125 :octocat: