From 7f7e5316b33097e2cb1f932c4c092fe42677df80 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 15 May 2017 08:34:51 +1000 Subject: Add warning about old/new java versions --- src/main/java/org/spigotmc/builder/Builder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index a8eb0aa..7cab141 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -138,10 +138,10 @@ public class Builder logOutput(); - if ( Float.parseFloat( System.getProperty( "java.class.version" ) ) < 51.0 ) + if ( Float.parseFloat( System.getProperty( "java.class.version" ) ) != 52.0 ) { - System.err.println( "*** WARNING *** You are not using Java 7 or above. Although this will work, it is highly discouraged due to the security issues present." ); - System.err.println( "*** WARNING *** Use java -version to check your version and update as soon as possible." ); + System.err.println( "*** WARNING *** You are not using Java 8. Java 8 is the only supported version for Minecraft versions >= 1.12." ); + System.err.println( "*** WARNING *** Please use java -version to check your version and note that early access versions of Java are not supported either." ); } try -- cgit v1.2.3