diff --git a/src/MCPing.php b/src/MCPing.php index 9ae4242..1ec435c 100644 --- a/src/MCPing.php +++ b/src/MCPing.php @@ -383,7 +383,8 @@ private static function createMotd($string) { $output .= '§r'; } - $output .= $item['text']; + $output .= is_array($item) ? $item['text'] ?? '' : $item; + } if(isset($string['text'])) {