Postpone java version during startup

This commit is contained in:
N0tMyFaultOG 2020-12-04 12:25:53 +01:00
parent 5d30e0854f
commit 62690c2a53
No known key found for this signature in database
GPG Key ID: 823348042DA95A81

View File

@ -243,9 +243,6 @@ 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
@ -515,6 +512,9 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
getLogger().warning("Failed to clean up players: " + e.getMessage());
}
}, 100L, 100L);
// Check whether the server runs on 11 or greater
checkJavaVersion();
}
private void unload() {