Bungeecord support added x14

This commit is contained in:
Michael Wain 2025-03-22 01:02:27 +03:00
parent 5e8aa2ae7f
commit acdb5473f5

View File

@ -86,7 +86,7 @@ public class XCraft extends Plugin {
Constructor<?> pConstructor = protocolMappingClass.getDeclaredConstructor(int.class, int.class);
pConstructor.setAccessible(true);
Method registerPacketMethod = toServerClass.getDeclaredMethod("registerPacket", Class.class, protocolMappingClass );
Method registerPacketMethod = toServerClass.getDeclaredMethod("registerPacket", Class.class, protocolMappingClass.arrayType() );
registerPacketMethod.setAccessible(true);
registerPacketMethod.invoke(toServerClass, EncryptionResponsePacket.class, pConstructor.newInstance(version, 1));