Fix wrong logic in the java version check
This commit is contained in:
parent
405d472ba8
commit
17415493f5
@ -197,7 +197,7 @@ public class AuthMe extends JavaPlugin {
|
|||||||
ConsoleLogger.setLogFile(new File(getDataFolder(), LOG_FILENAME));
|
ConsoleLogger.setLogFile(new File(getDataFolder(), LOG_FILENAME));
|
||||||
|
|
||||||
// Check java version
|
// 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!");
|
throw new IllegalStateException("You need Java 1.8 or above to run this plugin!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user