diff --git a/core/classes/Minecraft/MCQuery.php b/core/classes/Minecraft/MCQuery.php index 4fdc7b9dfa..644a974fd8 100644 --- a/core/classes/Minecraft/MCQuery.php +++ b/core/classes/Minecraft/MCQuery.php @@ -377,6 +377,10 @@ private static function getMotd(string $text, array $modern_format): string $motd = ''; foreach ($modern_format as $word) { + if (!is_array($word)) { + continue; + } + $motd .= self::COLOUR_CHAR . 'r'; if (isset($word['color'])) { $motd .= self::getColor($word['color']);