diff --git a/native/src/main/java/net/md_5/bungee/jni/NativeCode.java b/native/src/main/java/net/md_5/bungee/jni/NativeCode.java index be4d5b0b82..4426823c84 100644 --- a/native/src/main/java/net/md_5/bungee/jni/NativeCode.java +++ b/native/src/main/java/net/md_5/bungee/jni/NativeCode.java @@ -43,6 +43,7 @@ public boolean load() { if ( enableNativeFlag && !loaded && isSupported() ) { + String name = this.name + ( isAarch64() ? "-arm" : "" ); String fullName = "bungeecord-" + name; try @@ -94,6 +95,16 @@ public boolean load() public static boolean isSupported() { - return "Linux".equals( System.getProperty( "os.name" ) ) && "amd64".equals( System.getProperty( "os.arch" ) ); + return "Linux".equals( System.getProperty( "os.name" ) ) && ( isAmd64() || isAarch64() ); + } + + private static boolean isAmd64() + { + return "amd64".equals( System.getProperty( "os.arch" ) ); + } + + private static boolean isAarch64() + { + return "aarch64".equals( System.getProperty( "os.arch" ) ); } }