Add java version checker

This commit is contained in:
N0tMyFaultOG
2020-12-04 12:15:56 +01:00
parent ec683cdf88
commit 5d30e0854f
2 changed files with 78 additions and 0 deletions

View File

@ -156,6 +156,7 @@ import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import static com.plotsquared.bukkit.util.JavaVersionCheck.checkJavaVersion;
import static com.plotsquared.core.util.PremiumVerification.getDownloadID;
import static com.plotsquared.core.util.PremiumVerification.getResourceID;
import static com.plotsquared.core.util.PremiumVerification.getUserID;
@ -242,6 +243,9 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
return;
}
// Check whether the server runs on 11 or greater
checkJavaVersion();
// We create the injector after PlotSquared has been initialized, so that we have access
// to generated instances and settings
this.injector = Guice