-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested extra
in MOTD is not parsed correctly on stripped_motd
#224
Comments
Hey @ldilley, would you mind taking a look at this? In the Python version, the stripped MOTD looks more reasonable:
Based on the following JSON MOTD{
"extra":[
{
"extra":[
{
"color":"#4482B7",
"extra":[
{
"bold":true,
"extra":[
{
"color":"#4482B7",
"text":"M"
},
{
"color":"#4787BD",
"text":"I"
},
{
"color":"#4A8CC3",
"text":"N"
},
{
"color":"#4D90C8",
"text":"E"
},
{
"color":"#5095CE",
"text":" "
},
{
"color":"#549AD4",
"text":"P"
},
{
"color":"#579FDA",
"text":"L"
},
{
"color":"#5AA4E0",
"text":"A"
},
{
"color":"#5DA8E5",
"text":"N"
},
{
"color":"#60ADEB",
"text":"E"
},
{
"color":"#63B2F1",
"text":"T"
}
],
"text":""
},
{
"color":"#63B2F1",
"text":" \\u20aa"
}
],
"text":"\\u20aa "
}
],
"text":" "
},
"\\n",
{
"extra":[
{
"color":"#63F1D5",
"text":"\\ub2f9"
},
{
"color":"#67F2D6",
"text":"\\uc2e0"
},
{
"color":"#6BF2D8",
"text":"\\uc758"
},
{
"color":"#6FF3D9",
"text":" "
},
{
"color":"#74F4DB",
"text":"\\ubaa8"
},
{
"color":"#78F4DC",
"text":"\\ud5d8"
},
{
"color":"#7CF5DD",
"text":"\\uc744"
},
{
"color":"#80F6DF",
"text":" "
},
{
"color":"#84F7E0",
"text":"\\uc2dc"
},
{
"color":"#88F7E1",
"text":"\\uc791"
},
{
"color":"#8DF8E3",
"text":"\\ud558"
},
{
"color":"#91F9E4",
"text":"\\uc138"
},
{
"color":"#95F9E6",
"text":"\\uc694"
},
{
"color":"#99FAE7",
"text":"!"
}
],
"text":" "
}
],
"text":""
} |
I am not able to fully connect to the address and port returned by the SRV query for "mineplanet.kr". I tried from 2 different US locations. I also attempted to use https://motd.gg/ to get a copy of the MotD for testing purposes using a local server. This utility succeeds in connecting. However, it is generating the entire message as a single string value for the
|
Related to FragLand#224.
Do the changes in PR #226 work for you, @ryush00? I ended up essentially unit testing |
Thank you Idilley! Looks good! 👍 |
Expected Behavior
Actual Behavior/Symptoms
extra
MOTD is not parsed.How to Reproduce Behavior/Symptoms
But this server may not reached oversea from Korea, I also attach its data.
MineStat Version
Programming Language and Compiler/Interpreter Version
Operating System
Output/Screenshot(s)
Related
minestat/Ruby/lib/minestat.rb
Lines 256 to 274 in a2deb98
The text was updated successfully, but these errors were encountered: