Bungeecord support added x18

This commit is contained in:
Michael Wain 2025-03-22 01:20:49 +03:00
parent 57f23a5adb
commit 6543120df3

View File

@ -89,7 +89,8 @@ public class XCraft extends Plugin {
Method registerPacketMethod = toServerClass.getDeclaredMethod("registerPacket", Class.class, protocolMappingArray.getClass());
registerPacketMethod.setAccessible(true);
registerPacketMethod.invoke(toServerClass, EncryptionResponsePacket.class, protocolMappingArray);
registerPacketMethod.invoke(Protocol.LOGIN.TO_SERVER, EncryptionResponsePacket.class, protocolMappingArray);
}