Skip to content
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

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

Open
Zevgor opened this issue Aug 7, 2024 · 0 comments
Open

Comments

@Zevgor
Copy link

Zevgor commented Aug 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant