Fix wrong logic in the java version check

This commit is contained in:
Gabriele C 2017-03-17 14:34:24 +01:00 committed by GitHub
parent 405d472ba8
commit 17415493f5

View File

@ -197,7 +197,7 @@ public class AuthMe extends JavaPlugin {
ConsoleLogger.setLogFile(new File(getDataFolder(), LOG_FILENAME));
// Check java version
if(SystemUtils.isJavaVersionAtLeast(1.8f)) {
if(!SystemUtils.isJavaVersionAtLeast(1.8f)) {
throw new IllegalStateException("You need Java 1.8 or above to run this plugin!");
}