HelpChat / DeluxeMenus

DeluxeMenus but open source!?
https://wiki.helpch.at/clips-plugins/deluxemenus
MIT License
61 stars 31 forks source link

Placeholders that parse with a \n do not display correctly. #88

Closed Seeroh closed 1 month ago

Seeroh commented 3 months ago

As per the title. I have a JavaScript placeholder that I made to sort and then display some player data. It has a few newline characters inside ('\n'), but DM only shows the first line of the output.

On a side note, DM also does not parse \n inside the lore, even though the wiki states that it should be able to.

Server Version: git-Paper-409 (MC: 1.20.4)

DuluxeMenus Version: 1.14.0

BlitzOffline commented 1 month ago

Hello. I have tested this on the latest development build of DeluxeMenus and it does not seem to be an issue. As it can be seen in these images, only the display name is somewhat broken (it shouldn't support new lines in the first place). My assumption is that the placeholder doesn't return the new line. You can try a few things:

image image

Tested on:

This server is running Paper version git-Paper-496 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 7ac24a1 on ver/1.20.4)
You are running the latest version
Previous version: git-Paper-365 (MC: 1.20.4)
DeluxeMenus version 1.14.1-DEV-179
Created by extended_clip, Glare