Add note about Nashorn

This commit is contained in:
N0tMyFaultOG 2020-12-05 18:38:10 +01:00
parent 14ec7fb816
commit 60b5f5fe48
No known key found for this signature in database
GPG Key ID: 823348042DA95A81

View File

@ -68,6 +68,14 @@ public class JavaVersionCheck {
if (javaVersionNumber < 11) {
JavaVersionCheck.notify(javaVersion, logger);
}
if (javaVersionNumber >= 11) {
logger.error("************************************************************");
logger.error("* PlotSquared uses Nashorn for the internal scripting engine.");
logger.error("* Within Java 15, Nashorn has been removed from Java.");
logger.error("* Until we add a suitable workaround, you should stick to Java 11");
logger.error("* to use all features of PlotSquared.");
logger.error("************************************************************");
}
}
public static void notify(final String version, final Logger logger) {