diff options
author | md_5 <git@md-5.net> | 2017-05-15 08:34:51 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-05-15 08:34:51 +1000 |
commit | 7f7e5316b33097e2cb1f932c4c092fe42677df80 (patch) | |
tree | 61201263e6fa476e7607aad415f070916774cac2 /src/main | |
parent | 8aa3a224c30cbb9223aac5456c12ec22ff64fa5b (diff) | |
download | buildtools-7f7e5316b33097e2cb1f932c4c092fe42677df80.tar buildtools-7f7e5316b33097e2cb1f932c4c092fe42677df80.tar.gz buildtools-7f7e5316b33097e2cb1f932c4c092fe42677df80.tar.lz buildtools-7f7e5316b33097e2cb1f932c4c092fe42677df80.tar.xz buildtools-7f7e5316b33097e2cb1f932c4c092fe42677df80.zip |
Add warning about old/new java versions
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 |