Merge pull request #70 from pandaninjas/patch-2
Detect skipped compatibility check
This commit is contained in:
commit
391eb7e4af
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue