#2015: Add flag -Dbungee.native=false to disable native code.

This commit is contained in:
md_5 2016-12-04 10:41:29 +11:00
parent ea6680281f
commit 71b00d644f

View File

@ -80,6 +80,6 @@ public final class NativeCode<T>
public static boolean isSupported()
{
return "Linux".equals( System.getProperty( "os.name" ) ) && "amd64".equals( System.getProperty( "os.arch" ) );
return "Linux".equals( System.getProperty( "os.name" ) ) && "amd64".equals( System.getProperty( "os.arch" ) ) && Boolean.parseBoolean( System.getProperty( "bungee.native", "true" ) );
}
}