minecraft-server-status
minecraft-server-status copied to clipboard
Warning: Illegal string offset ‘text’ when parsing MOTD String
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’.
I’ve coded a fix for this that I will submit.