Merge pull request #70 from pandaninjas/patch-2

Detect skipped compatibility check
This commit is contained in:
Sefa Eyeoglu 2023-01-05 22:12:03 +01:00 committed by GitHub
commit 391eb7e4af
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',
`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;
};