Posted October 13, 201312 yr Hello, I created a Packet Handler on the Forge client side and a PluginMessageListener on the Bukkit server side. The server is sending a handshake packet to the client but the client does not receive the packet. This is the code: Mod class: @Mod(modid = "litecraft", name = "Litecraft", version = "0.1") @NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = {LitePacketHandler.CHANNEL}, packetHandler = LitePacketHandler.class) public class Litecraft { PacketHandler class: http://paste.minecraftforge.net/view/a91fc7ec SERVER SIDE (Bukkit) PacketHandler: http://paste.minecraftforge.net/view/20e59795 onEnable method of the plugin: this.packetHandler = new LitePacketHandler(); Bukkit.getMessenger().registerIncomingPluginChannel(this, LitePacketHandler.CHANNEL, packetHandler); Bukkit.getMessenger().registerOutgoingPluginChannel(this, LitePacketHandler.CHANNEL); I put souts at the appropriate lines and tested it multiple times without success, I would be very thankful for your help. Greetings Zelnehlun
October 14, 201312 yr I don't understand what you are trying to achieve with this... Anyway, both packet handlers have the same name, in the same package, but are different implementations. Sounds like trouble to me.
October 14, 201312 yr Author I am trying to communicate between the Forge Client and the Bukkit Server. It does not matter that the classes have similar package names because they are in completely different projects (Forge Minecraft Client & Bukkit Server Plugin)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.