server.properties error on resource-pack-prompt= with 1.21.7 paper server
Hi all, I have just updated my 1.21.4 paper server to 1.21.7 and now I get an error in the console reporting I have a malformed json for my resource-pack-prompt (see attached).
This is what I currently have:
resource-pack-prompt=["",{"text"\:"\n"},{"text"\:"NOTE","bold"\:true,"color"\:"red"},{"text"\:"\n","bold"\:true},{"text"\:"THE","bold"\:true,"color"\:"white"},{"text"\:" CONSTRUCT","bold"\:true,"color"\:"gold"},{"text"\:" uses a custom resource pack to ensure certain features work correctly.\n\nThis is "},{"text"\:"required","underlined"\:true},{"text"\:" in order to ensure that everyones experience is the same.\n\nPlease select "},{"text"\:"Proceed","bold"\:true,"color"\:"dark_green"},{"text"\:" to download and automatically install."}]

10 Replies
Anyone know a site/resource that will let me create this in an online editor so the formatting is correct?
try using "\n" instead of "\n" for newlines
bruh, discord wont show the second slash
use two \ instead of one \
thats invalid json, drop the backslashes from infront of "text"
im also not 100% sure if you need the square brackets at the beginning and the end
i also dont think you require the empty quotes at the start of your string
Thanks both. So do I also need a double \ for the new lines (\n) too?
Still getting the error

I have just run this trough https://jsonlint.com/ and it gave the following:
Error: Parse error on line 1:
{"text":"\n"},{"text":"NOTE","bol
-------------^
Expecting 'EOF', got ','
JSON Online Validator and Formatter - JSON Lint
JSONLint is the free online validator, json formatter, and json beautifier tool for JSON, a lightweight data-interchange format. You can format json, validate json, with a quick and easy copy+paste.
try this
thats cus i removed the square brackets
the change i made was doing what eismeister suggested, doing
\\n
instead of \n
Just trying now 😉
@Lunaiskey thank you!
Now to reword it as two ensures is hurting my brain lol
