From 4dff25f880ef5d25b589182a14e7f00cd081886e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 27 Oct 2013 11:38:28 +1100 Subject: [PATCH] In favour of #678 - use supported class version --- bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java index 94eade59..fbaa2bcd 100644 --- a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java +++ b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java @@ -39,9 +39,9 @@ public class Bootstrap return; } - if ( !System.getProperty( "java.version" ).startsWith( "1.7" ) ) + if ( Float.parseFloat( System.getProperty( "java.class.version" ) ) < 51.0 ) { - System.err.println( "*** ERROR *** BungeeCord requires Java 7 to function!" ); + System.err.println( "*** ERROR *** BungeeCord requires Java 7 or above to function!" ); return; }