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; }