Detect skipped compatibility check

Signed-off-by: pandaninjas <admin@malwarefight.gq>
This commit is contained in:
pandaninjas 2023-01-05 19:03:29 +00:00 committed by GitHub
parent 73e0358a7b
commit 1f293f38da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,11 @@ const javaAnalyzer: Analyzer = async (text) => {
'Wrong Java Version', 'Wrong Java Version',
`Please switch to the following: \`${ver}\`\nFor more information, type \`/tag java\``, `Please switch to the following: \`${ver}\`\nFor more information, type \`/tag java\``,
]; ];
} else if (text.includes('Java major version is incompatible. Things might break.')) {
return [
'Java compatibility check skipped',
'The Java major version may not work with your Minecraft instance. Please switch to a compatible version'
]
} }
return null; return null;
}; };