minecraft-server-status icon indicating copy to clipboard operation
minecraft-server-status copied to clipboard

Warning: Illegal string offset ‘text’ when parsing MOTD String

Open Zevgor opened this issue 6 months ago • 0 comments

I encountered an issue implementing MCPing on my website when parsing my server’s MOTD. It appears that the characters are being returned as arrays dictating the color and formatting, but the second line of text is being returned as a string (not an array) which is causing the illegal offset when attempting to read the key-value of ‘text’. IMG_0447

I’ve coded a fix for this that I will submit.

Zevgor avatar Aug 07 '24 00:08 Zevgor